Skip to content

Instantly share code, notes, and snippets.

@rafaellincoln
Last active October 22, 2019 16:20
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rafaellincoln/bbc4d5538e599f32cca80ff81a1622cf to your computer and use it in GitHub Desktop.
Save rafaellincoln/bbc4d5538e599f32cca80ff81a1622cf to your computer and use it in GitHub Desktop.
Git Flow - Comandos Manuais

Feature

Criar branch feature

git checkout develop
git pull origin develop
git checkout -b feature/CODIGO_TASK

Atualizar branch feature

git checkout feature/CODIGO_TASK
git pull --rebase origin develop

Finalizar feature

git checkout feature/CODIGO_TASK
git push origin feature/CODIGO_TASK

Criar Pull request da branch feature/CODIGO_TASK para a branch develop

Bugfix

Criar branch bugfix

git checkout develop
git pull origin develop
git checkout -b bugfix/CODIGO_TASK

Atualizar branch bugfix

git checkout bugfix/CODIGO_TASK
git pull --rebase origin develop

Finalizar bugfix

git checkout bugfix/CODIGO_TASK
git push origin bugfix/CODIGO_TASK

Criar Pull request da branch bugfix/CODIGO_TASK para a branch develop

Hotfix

Criar branch hotfix

git checkout master
git pull origin master
git checkout -b hotfix/CODIGO_TASK

Atualizar branch feature

git checkout hotfix/CODIGO_TASK
git pull --rebase origin master

Finalizar feature

git checkout hotfix/CODIGO_TASK
git push origin hotfix/CODIGO_TASK

Criar Pull request da branch hotfix/CODIGO_TASK para a branch master

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment