Git Links
Table of contents
There a are many links about Git. Here are my favorites
Tools to help you
- You need to know what command to use ? See the Interactive Git cheatsheet
- You need to find the right git command line ? Answer simple choices on Git explorer
Workflows
How do you manage team work on releases, features, hot-fixes, … ? You have to choose wisely. I recommend :
- A very well made page by Atlassian : Comparing workflows
- See how the deal with it at GitLab : GitLab flow
- En français : Gitflow : est-il le workflow dont j’ai besoin ?
If Git flow is your choice here a cheatsheat of doing git flow using the command line : Git flow cheatsheet
You have done pushed something you shouldn’t have ?
Then Oh shit, git! is what you need
Ou bien Pour arrêter de galérer avec Git
Whant to have some fun with Git ?
Generate some fake documentation about fake git commands : Git man page generator
Don’t like the command line ?
I recommend Git kraken
Do you like to print a cheat-sheet ?
- Git Tower cheat-sheet
- The beautiful ZeroTurnAround cheat-sheet
Final words
I do love the command line and I love to make aliases like :
git config --global alias.a 'config --get-regexp alias'
git config --global alias.aa 'add --all'
git config --global alias.ba 'branch --all -v'
git config --global alias.ci 'commit'
git config --global alias.cm 'commit -m'
git config --global alias.co 'checkout'
git config --global alias.cod 'checkout develop'
git config --global alias.com 'checkout master'
git config --global alias.cp 'cherry-pick'
git config --global alias.d1 'diff --name-only HEAD~1 HEAD'
git config --global alias.dd 'diff HEAD..develop --name-status'
git config --global alias.dm 'diff HEAD..master --name-status'
git config --global alias.fff 'flow feature finish'
git config --global alias.ffs 'flow feature start'
git config --global alias.fi 'flow init -d'
git config --global alias.fp 'fetch --prune'
git config --global alias.fr 'flow release'
git config --global alias.frf 'flow release finish'
git config --global alias.frs 'flow release start'
git config --global alias.ld 'log -p -2'
git config --global alias.lo 'log -10 --date=short --oneline --no-merges'
git config --global alias.lm 'log -10 --date=short --oneline'
git config --global alias.pab 'push --all origin'
git config --global alias.poh 'push origin HEAD'
git config --global alias.pr 'pull --rebase'
git config --global alias.pt 'push origin --tags'
git config --global alias.rh 'reset HEAD --'
git config --global alias.sa 'stash apply --index'
git config --global alias.sl 'stash list'
git config --global alias.st 'status'