Git est compliqué : il est facile de se tromper et impossible de réparer ses erreurs. La documentation de Git tient du problème de l'œuf et de la poule : pour y chercher comment vous sortir du pétrin il faut déjà connaître le truc qu'il faut savoir pour résoudre votre problème.
Voici donc quelques exemples de mauvais pas dans lesquels je me suis retrouvé, et comment j'ai réussi à m'en sortir, tout ça en français dans le texte*.
Via WJ.
Tout est dans le titre.
feat(lang): add polish languageSi vous ne voulez pas avoir à taper l’intégralité du texte de chaque commande, vous pouvez facilement définir un alias pour chaque commande en utilisant git config.
git config --global alias.co checkout
git config --global alias.br branch
git config --global alias.ci commit
git config --global alias.st statusVia Shuuk sur le discord de Simplon.
Git is hard: screwing up is easy, and figuring out how to fix your mistakes is fucking impossible. Git documentation has this chicken and egg problem where you can't search for how to get yourself out of a mess, unless you already know the name of the thing you need to know about in order to fix your problem.
So here are some bad situations I've gotten myself into, and how I eventually got myself out of them in plain english*.
The legendary Git GUI client for Windows, Mac and Linux
Via Korben.
Octobox helps you manage your GitHub notifications efficiently so you can spend less time managing and more time getting things done.
De Aditya Sridhar sur freeCodeCamp.
- I made a mistake in my commit, how do I fix it ?
- My commit history is a mess, how do I make it neater?
If you have ever had the above questions, then this post is for you. This post covers a list of topics which will make you a Git expert.
De Robert Cooper sur dev.to via Jonathan sur le discord de Simplon Lyon.
Leveraging aliases when working with git can help make you more efficient with using the popular version control system. Listed below are some of my absolute favourite and most used aliases when working on a project that uses git.
Sur grafikart via Alex M.
Nommer les choses n'est jamais facile et les commits de git n'échappent pas à la règle. Le problème d'un mauvais nommage est qu'il est ensuite difficile de retrouver un commit spécifique et il est donc important de trouver une convention particulière pour bien s'organiser.
Voir aussi :
- Using GitHub as a team: the holy grail of commit messages via sur Thorwebdev le discord de Simplon.
Lires les coms :
De Rob Hoelz - DEV Community
Via Tiennou sur le discord de Simplon. Alternative à NPM.
Extendable version manager with support for Ruby, Node.js, Elixir, Erlang & more
Un service git auto-hébergé sans-douleur.
- Facile à installer
- Multi-platforme
- Léger
- Open Source
Les bases de Git
Démarrer un dépôt Git
git remote set-url origin gnagnan.git
Is used to change the url of an existing remote repository.
git clone gnagnan.git new-name-project
Rename the cloned project.
- git-flow cheatsheet : git-flow est un ensemble d'extensions git permettant des opérations de haut niveau sur un dépôt pour appliquer le modèle de branches de Vincent Driessen.
- Learn Git Branching : Cette application a été conçue pour aider les débutants à saisir les puissants concepts derrière les branches en travaillant avec git.
Juste un petit guide pour bien démarrer avec git. no deep shit ;)