Cheat Sheet Git

Rebase process

git rebase master -i
git add .
git rebase --continue

Rebase sans changer de branches

git fetch origin features/toto:features/toto
git rebase features/toto

Ajouter une remote

git remote add origin git@github.com:username/existing_project.git

Ajouter un fichier dans le précédent commit

git commit --amend --no-edit

Auto Setup Remote for push

git config --global push.autoSetupRemote true

Open git in your browser

git instaweb

Clean up (Git Garbage Collector)

git gc

Des articles pour aller plus loin

Créer des alias sur Git
Push configuration
Git bisect
Enforce conventionnal commit with git hooks
Git Interactive Rebase, Squash, Amend and Other Ways of Rewriting History
Quatres astuces pour maitriser ses rebases