mab-work / Branching-Example

Used to illustrate the use of git flow

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

git flow init -d
git commit -m "First commit for new project"
git push -u -all origin

// creating a new feature branch to fix Ref123
git flow feature start Ref123
git commit -m "First commit for new feature branch"
git flow feature publish Ref123

// do work
git commit -m "Second commit for new feature branch"
git push -u origin

// Finish work
git commit -m "Third commit for new feature branch"
git push -u origin
git flow feature finish Ref123
git push -u origin

// create a new release candidate
git flow release start 1.0.0
git flow release publish 1.0.0

// do release prep & final testing
git commit -m "Final commit for release"
git push -u origin
git flow release finish 1.0.0
git push -u origin 
git push --tags

// do a hotfix
git flow hotfix start 1.1.0
git push -u --all origin
//do work
git commit -m "last commit for hotfix 1.1.0"
git flow hotfix finish 1.1.0
git push -u origin 
git push --tags

// create a feature branch (done as a different user)
git flow feature start Ref456
git commit -m "First commit for new feature branch"
git flow feature publish Ref456

//do work
git commit -m "Last commit for new feature branch"
git flow feature finish Ref456
git push -u --all --tags origin 
git push -u --all origin 

About

Used to illustrate the use of git flow