git config core.editor "xemacs"
git config merge.tool kdiff3
##git windows force linux mode for one repo git config core.autocrlf input
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 push <REMOTE> <sh1 of commit>:<branch> |
git push <REMOTE> <name of branch>
git tag <nameoftag> <name of commit>
git push <REMOTE> <name of tag> git tag <new> <old> # Create a new local tag named `new` from tag `old`. git tag -d <old> # Delete local tag `old`. git push origin <new> :<old> # Push `new` to your remote named "origin", and delete # tag `old` on origin (by pushing an empty tag # name to it).
#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