• Li chevron_right

      Switching Branches in Git

      pubsub.slavino.sk / linuxhandbook.com · Tuesday, 22 August, 2023 - 11:01 edit

    Here are a few examples to show you how to list local and remote branches and switch between those branches.

    Značky: #Linux, #Git

    • Li chevron_right

      How to Unstage Files in Git

      pubsub.slavino.sk / linuxhandbook.com · Thursday, 15 June, 2023 - 08:38 edit

    Accidentally added a file in the latest commit? Don't worry too much. Here is how you can unstage a file in Git.

    Značky: #Git, #Linux

    • chevron_right

      Copilot CLI – Votre expert en shell à portée de main

      news.movim.eu / Korben · Tuesday, 23 May, 2023 - 12:00 · 1 minute

    Voici un nouveau truc absolument fantastique si vous aimez l’IA : Copilot CLI ! Développé par Github, imaginez un terminal si puissant qu’il semble lire dans vos pensées et comprendre tout ce que vous voulez faire.

    Copilot CLI est cette petite révolution qui nous attend tous parce qu’il est capable de concevoir des commandes shell complexes et des boucles que je n’aurais jamais pu imaginer sans y passer des heures. C’est comme si un expert en shell vivait à l’intérieur de votre terminal et vous chuchotait à l’oreille comment exécuter des commandes obscures que vous n’auriez jamais osé essayer auparavant.

    Parfois on bute sur des problèmes insurmontables quand on est sur son terminal et maintenant, avec Copilot CLI, qui connait ces outils sur le bout des doigts, plus de problèmes !

    En réalité, Copilot CLI dispose de trois commandes shell : ?? , git? et gh? .

    Voici comment elles fonctionnent :

    • ?? est un outil polyvalent pour les commandes shell arbitraires. Elle compose des commandes et des boucles, et utilise des indicateurs de recherche obscurs pour répondre à votre requête.
    • git? est spécifiquement utilisée pour chercher des invocations git. Par rapport à ??, elle est plus puissante pour générer des commandes Git, et vos requêtes peuvent être plus succinctes lorsque vous n’avez pas besoin d’expliquer que vous êtes dans le contexte de Git.
    • gh? combine la puissance de la commande CLI GitHub et de l’interface de requête avec la commodité de laisser l’IA générer pour vous les indicateurs compliqués et les expressions jq.

    Pour l’instant, Copilot CLI est disponible alpha, mais vous pouvez vous inscrire sur la liste d’attente et recevoir une notification dès que vous aurez accès. À noter qu’il vous faudra également un accès à GitHub Copilot pour l’utiliser.

    Grâce à ces alias, vous pourrez également exécuter les commandes générées directement dans votre terminal.

    Préparez-vous et améliorez vos compétences en shell grâce à Copilot CLI. Nous sommes sur le point de voir des changements incroyables dans notre façon d’utiliser nos terminaux.

    À découvrir ici

    • chevron_right

      After 18 months, GitHub’s big code search overhaul is generally available

      news.movim.eu / ArsTechnica · Monday, 8 May, 2023 - 20:48

    GitHub has announced the general availability of a ground-up rework of code search that has been in development for years.

    The changes include substantial new functionality that is significantly more aware of context. The company says its new code search is "about twice as fast" as the old code search and that it "understands code, putting the most relevant results first."

    That's on top of redesigned search and code view interfaces. The new search interface offers suggestions and completions, and categorizes and formats the results more intelligently.

    Read 6 remaining paragraphs | Comments

    • Li chevron_right

      Setup Username and Email in Git

      pubsub.slavino.sk / linuxhandbook.com · Monday, 17 April, 2023 - 10:56 edit

    Git asking you "please tell me who you are"? You need to set up the git username and email. Here's how to do that.

    Značky: #Git, #Linux

    • Wa chevron_right

      Git Hooks

      pubsub.slavino.sk / warlord0blog · Monday, 5 December, 2022 - 08:27 edit

    I wanted to ensure I wasn’t pushing unencrypted data onto our Git repo. It’s set as private anyhow, but the repo I’m using is for our Ansible library. It contains all kinds of details about the builds of equipment and software delivery, that would be a risk. How do I ensure that I don’t push &ellipsisRead the full post »

    Značky: #Linux, #ansible, #Uncategorized, #git

    • Li chevron_right

      How to Delete Local Git Branch

      pubsub.slavino.sk / linuxhandbook.com · Wednesday, 28 September, 2022 - 06:33 edit

    In this chapter of the Git beginners tutorial series, learn about deleting and force deleting a local git branch.

    Značky: #Git, #Linux

    • chevron_right

      Unix legend, who owes us nothing, keeps fixing foundational AWK code

      news.movim.eu / ArsTechnica · Tuesday, 23 August, 2022 - 17:50 · 1 minute

    Brian Kernighan speaking onstage.

    Enlarge / Brian Kernighan speaking at a tribute to his Bell Labs coworker and The C Programming Language co-author Dennis Ritchie in 2012. Ritchie's visage in dominoes is behind Kernighan. (credit: Ben Lowe/Flickr )

    A Princeton professor, finding a little time for himself in the summer academic lull, emailed an old friend a couple months ago. Brian Kernighan said hello, asked how their US visit was going, and dropped off hundreds of lines of code that could add Unicode support for AWK, the text-parsing tool he helped create for Unix at Bell Labs in 1977.

    "I have tested this a fair amount but clearly more tests are needed," Kernighan wrote in the email, posted in late May as a kind of pseudo-commit on the onetrueawk repo by longtime maintainer Arnold Robbins. "Once I figure out how ... I will try to submit a pull request. I wish I understood git better, but in spite of your help, I still don't have a proper understanding, so this may take a while."

    Kernighan is the "K" in AWK , a special-purpose language for extracting and manipulating language that was key to Unix's pipeline features and interoperability between systems. A working awk function (AWK is the language, awk the command to invoke it) is critical to both Standard UNIX Specification and IEEE POSIX certification for interoperability. There are countless variants of awk —including modern derivations with support for Unicode—but "One True AWK," sometimes known as nawk , is a kind of canonical version based on Kernighan's 1985 book The AWK Programming Language and his subsequent input.

    Read 5 remaining paragraphs | Comments

    • chevron_right

      Apple makes Xcode Cloud available to all developers

      news.movim.eu / ArsTechnica · Tuesday, 7 June, 2022 - 21:50

    A Mac laptop running Xcode.

    Enlarge / A Mac laptop running Xcode. (credit: Apple )

    CUPERTINO, Calif.— Xcode Cloud , Apple's continuous integration and delivery service (CI/CD), is exiting beta and will now be available to all developers , the company announced during its annual Worldwide Developer Conference (WWDC) on Monday.

    Xcode Cloud was first announced during WWDC in June 2021. Since then, Apple has been slowly rolling it out to more developers. But now anyone can sign up for it. The service comes in several paid tiers, but the cheapest—25 hours at $14.99 per month—will be free through December 2023. More robust plans include 100 hours for $44.99 monthly, 250 hours for $99.99 monthly, and 1,000 hours for $399.99 monthly.

    This is by no means the only CI/CD solution for Apple platform devs on the market, but it promises to offer deeper and easier integration with Apple's existing development tools. It's built into Xcode, the integrated development environment to make iPhone, iPad, and Mac apps. And it works directly with TestFlight (which lets developers distribute their apps to users for pre-release testing), App Store Connect, and more.

    Read 3 remaining paragraphs | Comments