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

Contenu supprimé Contenu ajouté
Aucun résumé des modifications
Ligne 40 :
$ git branch '''-D''' dev
 
=== PushingEnvoyer aune branchbranche todans aun remoteautre repositorydépôt ===
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 :
When you create a local branch, it won't automatically be kept in sync with the server. Unlike branches obtained by pulling from the server, simply calling <tt>git push</tt> isn't enough to get your branch pushed to the server. Instead, you have to explicitly tell git to push the branch, and which server to push it to:
$ git push originorigine <branch_nameNomBranche>
 
$ git push origin <branch_name>
 
=== Deleting a branch from the remote repository ===