Skip to content

Git Flow

Rafael Batista edited this page Oct 23, 2021 · 4 revisions

Instalação

sudo apt install git-flow

Configuração

git flow init
Which branch should be used for bringing forth production releases?
Branch name for production releases: [master] master

Which branch should be used for integration of the "next release"?
Branch name for "next release" development: [develop] develop

How to name your supporting branch prefixes?
Feature branches? [feature/] feature/
Bugfix branches? [bugfix/] bugfix/ 
Release branches? [release/] release/ 
Hotfix branches? [hotfix/] hotfix/ 
Support branches? [support/] support/ 
Version tag prefix? [] v
Hooks and filters directory? [.husky] .husky

Iniciando uma nova feature

git flow feature start MYFEATURE

Publicando uma feature finalizada

git flow feature publish MYFEATURE

Obtendo uma branch na sua máquina

git flow feature track MYFEATURE