get:creating_a_remote_branch
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
get:creating_a_remote_branch [2016/05/02 14:39] – created leo | get:creating_a_remote_branch [2016/05/02 15:03] (current) – leo | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | |<- [[Adding a remote repository]]|[[Closing | + | |<- [[Adding a remote repository]]|[[Cloning |
==== Push ==== | ==== Push ==== | ||
- | === push -u === | + | === push -u (== option --set-upstream) |
< | < | ||
+ | |||
+ | |||
+ | Par défaut, un **push** va pousser toutes les branches locales qui existent aussi sur le remote. | ||
+ | |||
+ | Cela sauf si la branche actuelle dispose d'un // | ||
+ | |||
+ | L' | ||
+ | |||
+ | Il est possible de changer le comportement et éviter le push accidentel de branche par git via la commande : | ||
+ | < | ||
+ | git config --global push.default tracking | ||
+ | </ |
get/creating_a_remote_branch.1462192758.txt.gz · Last modified: 2016/05/02 14:39 by leo