get:creating_a_remote_branch
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| get:creating_a_remote_branch [2016/05/02 14:44] – leo | get:creating_a_remote_branch [2016/05/02 15:03] (current) – leo | ||
|---|---|---|---|
| Line 3: | Line 3: | ||
| ==== 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.1462193087.txt.gz · Last modified: 2016/05/02 14:44 by leo