git config core.editor "xemacs"
git config merge.tool kdiff3
git add .
git reset --hard HEAD
git clean -f -d
# l'option -a fait aussi l'ajout des modifications dans l'index
# équivalent de git add . suivi de git commit
git commit -a
git commit --amend "nouveau commentaire"
git tag <nameoftag> <name of commit>
git push <REMOTE> <name of tag>
Il est possible de ne pousser qu'un commit à la fois
git push <REMOTE> <sh1 of commit>:<branch>
git push <REMOTE> <name of branch>
#en local
git branch -m <old-name> <new-name>
#en distant
git push origin :<old-name> <new-name>
Par exemple pour rebaser la branche locale
git remote add upstream https://github.com/jmcameron//attachments.git
git fetch upstream
git rebase upstream/attachmentsid