gestion_configuration:git:flow
Différences
Ci-dessous, les différences entre deux révisions de la page.
Prochaine révision | Révision précédente | ||
gestion_configuration:git:flow [2016/11/23 20:31] – créée sgariepy | gestion_configuration:git:flow [2022/02/02 00:42] (Version actuelle) – modification externe 127.0.0.1 | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | ====== | + | ====== |
- | ===== Start ===== | + | Ubuntu: |
- | Va créer une branche dans '' | + | $ apt-get install git-flow |
- | $ git flow feature start < | + | Mac: |
+ | $ brew install git-flow-avh | ||
+ | ====== Initialisation ====== | ||
+ | $ git flow init | ||
+ | Il est recommandé de garder les valeurs par défaut: | ||
+ | * Les fonctionnalités dans '' | ||
+ | * Les correctifs dans '' | ||
+ | * Les livraisons dans '' | ||
- | ====== | + | ====== |
+ | ===== Commencer ===== | ||
- | ====== Hotfix ====== | + | Va créer une branche dans '' |
+ | $ git flow feature start MYFEATURE | ||
+ | |||
+ | Publier une feature: | ||
+ | |||
+ | $ git flow feature publish MYFEATURE | ||
+ | | ||
+ | ===== Terminer ===== | ||
+ | |||
+ | $ git flow feature finish MYFEATURE | ||
+ | |||
+ | ====== Livraison ====== | ||
+ | |||
+ | ===== Commencer ===== | ||
+ | |||
+ | |||
+ | $ git flow release start RELEASE [BASE] | ||
+ | |||
+ | Le paramètre '' | ||
+ | |||
+ | Exemple: | ||
+ | |||
+ | $ git flow release start 0.1.4 # va créer la branche release/ | ||
+ | |||
+ | |||
+ | Idéalement on pousse la branche de livraison sur '' | ||
+ | |||
+ | $ git flow release publish RELEASE | ||
+ | |||
+ | |||
+ | ===== Terminer ===== | ||
+ | |||
+ | |||
+ | Quand on a terminé le release: | ||
+ | |||
+ | $ git flow release finish RELEASE | ||
+ | |||
+ | Ne pas oublier de pousser le '' | ||
+ | |||
+ | $ git push --tags | ||
+ | |||
+ | ====== Correctif ====== | ||
+ | |||
+ | ===== Commencer ===== | ||
+ | |||
+ | |||
+ | $ git flow hotfix start VERSION [BASENAME] | ||
+ | |||
+ | |||
+ | ===== Terminer ===== | ||
+ | |||
+ | $ git flow hotfix finish VERSION | ||
+ | |||
+ | [[http:// |
gestion_configuration/git/flow.1479929469.txt.gz · Dernière modification : 2022/02/02 00:43 (modification externe)