Skip to content

Instantly share code, notes, and snippets.

@six8
Created February 6, 2012 09:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save six8/1751024 to your computer and use it in GitHub Desktop.
Save six8/1751024 to your computer and use it in GitHub Desktop.
git flow finish current branch
[alias]
# Start a feature branch (git start myfeature)
start = !"git flow feature start $1"
# Finish current git flow branch (git finish)
finish = !"git flow $(BRANCH=$(git for-each-ref --format='%(refname:short)' `git symbolic-ref HEAD`); echo ${BRANCH%/*} finish ${BRANCH##*/})"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment