Gitflow Command Line - naustudio/dotfiles GitHub Wiki

Git Flow Command Line and Their Native Commands Equivalent

Git Flow Feature

Start New Feature
> git flow feature start
# Translates to:
> git branch feature/<name>
> git checkout feature/<name>
Publish Feature to Remote
> git flow feature publish <name>
# This command translates to the following native commands:
> git push origin <name>
> git config "branch.<name>.remote" "origin"
> git config "branch.<name>.merge" "refs/heads/<name>"
> git checkout "<name>"
Pull Feature from Remote
> git flow feature pull <name>
# For the first time feature pull, translates to:
> git fetch -q "origin" "<name>"
> git branch –no-track "<name>" FETCH_HEAD
> git checkout -q "<name>"
# And for any subsequent feature pull translates to:
> git pull -q "origin" "<name>"
Finish a Feature
> git flow feature finish
# This translates to the following native commands:
> git checkout develop
> git merge –no-ff "<name>"
> git branch -d <name>

Git Flow Release

Start a Release

[TBC]

Finish a Release
> git flow release finish -F -p iteration01
# Translates to:
> git checkout master
> git fetch origin master
> git merge –no-ff iteration01
> git tag -a iteration01
> git push origin master
> git checkout develop
> git fetch origin develop
> git merge –no-ff iteration01
> git push origin develop
> git branch –d iteration01

Source: http://blogs.endjin.com/2013/04/a-step-by-step-guide-to-using-gitflow-with-teamcity-part-3-gitflow-commands/

⚠️ **GitHub.com Fallback** ⚠️