Skip to content
This repository has been archived by the owner on Nov 19, 2017. It is now read-only.
/ MP Public archive

Projeto final da disciplina de Métodos de Programação, UnB, 2016/1

Notifications You must be signed in to change notification settings

vamcs/MP

Repository files navigation

MP

Projeto final da disciplina de Métodos de Programação, UnB, 2016/1

Gitflow Workflow

Resumo:

  • Feature (develop -> develop):
#Cria o branch feature
git checkout -b myfeature develop
---------------------------------
#Faz merge em develop
git checkout develop
git merge --no-ff myfeature
git branch -d myfeature
git push origin develop
  • Release (develop -> develop e master):
#Cria o branch release
git checkout -b release-1.2 develop
./bump-version.sh 1.2                             #Fictício
git commit -a -m “Bumped version number to 1.2”
---------------------------------
#Faz merge em master
git checkout master
git merge --no-ff release-1.2
git tag -a 1.2
#Faz merge em develop
git checkout develop
git merge --no-ff release-1.2
git branch -d release-1.2
  • Hotfix (master -> develop e master):
#Cria o branch hotfix
git checkout -b hotfix-1.2.1 master
./bump-versio.sh 1.2.1                        #Fictício
git commit -a -m “Bumped version number to 1.2.1”
git commit -m “Fixed severe production problem”
---------------------------------
#Merge em master
git checkout master
    git merge --no-ff hotfix-1.2.1
    git tag -a 1.2.1
#Merge em develop
git checkout develop
    git merge --no-ff hotfix-1.2.1
git branch -d hotfix-1.2.1

About

Projeto final da disciplina de Métodos de Programação, UnB, 2016/1

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages