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

Contenu supprimé Contenu ajouté
Aucun résumé des modifications
Ligne 42 :
=== Envoyer une branche dans un dépôt distant ===
Créer une branche locale ne la fait pas intrinsèquement se synchroniser avec un serveur. Donc de la même façon que nous pouvons les télécharger, <tt>git push</tt> les téléverse :
$ git push origineDepotDOrigine <NomBranche>
 
=== Effacer une branche d'un dépôt distant ===
To delete a branch that has been pushed to a remote server, use the following command:
 
$ git push originDepotDOrigine :<branch_nameNomBranche>
 
This syntax isn't intuitive, but what's going on here is you're issuing a command of the form:
 
$ git push originDepotDOrigine <local_branchBrancheLocale>:<remote_branchBrancheDistante>
 
and giving an empty branch in the <tt><local_branchBrancheLocale></tt> position, meaning to overwrite the branch with nothing.
 
==Merging==