git flow documantation code example
Example 1: git flow hotfix
#Start hotfix
git flow hotfix start VERSION
#Finish hotfix, Remember to increase your app version!
git flow hotfix finish VERSION
#Remember to push all branches and tags
git push --all --follow-tags
Example 2: gitflow workflow diagram
$ git checkout -b myfeature develop
Switched to a new branch "myfeature"