Aucun résumé des modifications |
Aucun résumé des modifications |
||
| Ligne 1 : | Ligne 1 : | ||
{{#seo:|keywords=git,gestion de configuration}} | |||
{{sommaire à droite}} | {{sommaire à droite}} | ||
== Configuration == | == Configuration == | ||
| Ligne 55 : | Ligne 55 : | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
git push <REMOTE> <name of tag> | git push <REMOTE> <name of tag> | ||
</syntaxhighlight><br> | |||
''Il est possible de ne pousser qu'un commit à la fois'' | |||
<syntaxhighlight lang="bash"> | |||
git push <REMOTE> <sh1 of commit>:<branch> | |||
</syntaxhighlight><br> | </syntaxhighlight><br> | ||
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>