« Git/Branches » : différence entre les versions

Contenu supprimé Contenu ajouté
Ligne 51 :
$ git push DepotDOrigine <BrancheLocale>:<BrancheDistante>
 
==Merging Fusion ==
Pour la branche courante avec une autre dont on connait le nom :
Branching is the central concept of DVCS, but without good merging support, branches would be of little use.
<source lang="bash">
$ git merge myBranchNomBranche
</source>
 
Si la branche courante est une ancêtre de celle à fusionner, la tête (HEAD) se place directement dans la nouvelle branche. Sinon, un <code>merge commit</code> est enregistré de sorte que les précédentes soumissions des deux branches sont fusionnées comme parentes. Toutefois en cas de conflit, il faudra les résoudre avant le <code>merge commit</code>.
This command merges the given branch into the current branch. If the current branch is a direct ancestor of the given branch,
a ''fast-forward'' merge occurs, and the current branch head is redirected to point at the new branch. In other cases, a
''merge commit'' is recorded that has both the previous commit and the given branch tip as parents. If there are any conflicts
during the merge, it will be necessary to resolve them by hand before the merge commit is recorded.
 
[[en:Git/Branching & merging]]