Skip to content

Instantly share code, notes, and snippets.

@rafaellincoln

rafaellincoln/gitflow.md

Last active Oct 22, 2019
Embed
What would you like to do?
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