Aucun résumé des modifications |
Aucun résumé des modifications |
||
| Ligne 78 : | Ligne 78 : | ||
#en distant | #en distant | ||
git push origin :<old-name> <new-name> | git push origin :<old-name> <new-name> | ||
</syntaxhighlight> | |||
<br> | |||
<br> | |||
=== Ajouter une source pour le repo distant === | |||
PAr exemaple pour rebaser la branche | |||
<div class="blubox-jck"> | |||
<syntaxhighlight lang="bash"> | |||
git remote add upstream https://github.com/jmcameron//attachments.git | |||
git fetch upstream | |||
git rebase upstream/attachmentsid | |||
</syntaxhighlight> | </syntaxhighlight> | ||
<br> | <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>
PAr exemaple pour rebaser la branche
git remote add upstream https://github.com/jmcameron//attachments.git
git fetch upstream
git rebase upstream/attachmentsid