Suite de la rédaction des infos sur le git
This commit is contained in:
parent
af491c91b6
commit
87ecb22ea5
@ -9,10 +9,15 @@ Triskele suit partiellement le [[https://nvie.com/posts/a-successful-git-branchi
|
|||||||
|
|
||||||
** Commandes utiles
|
** Commandes utiles
|
||||||
|
|
||||||
- Créer une branche et s'y placer de suite
|
- Créer une branche locale et s'y placer de suite
|
||||||
$ git checkout -b nomDeBranche nomDeBrancheParent
|
$ git checkout -b nomDeBranche nomDeBrancheParent
|
||||||
# Exemple, création d'une feature pour les oméga-tree
|
# Exemple, création d'une feature pour les oméga-tree
|
||||||
$ git checkout -b omegafeatures develop
|
$ git checkout -b omega_feature develop
|
||||||
|
|
||||||
|
- Synchroniser la branche créée avec le dépot distant
|
||||||
|
$ git push orgin nomDeBranche
|
||||||
|
# Exemple avec la feature ci-dessus
|
||||||
|
$ git push origin omega_feature
|
||||||
|
|
||||||
- Afficher toutes les branches existantes (locales ou distantes)
|
- Afficher toutes les branches existantes (locales ou distantes)
|
||||||
$ git branch -a
|
$ git branch -a
|
||||||
|
Loading…
Reference in New Issue
Block a user