Skip to content

Instantly share code, notes, and snippets.

@jaysonsantos
Created May 17, 2013 13:25
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jaysonsantos/5599021 to your computer and use it in GitHub Desktop.
Save jaysonsantos/5599021 to your computer and use it in GitHub Desktop.
Create a git flow hotfix with last tag + 1.
alias gh="git fetch; git checkout master; git merge origin/master; git checkout develop; git merge origin/develop; git flow hotfix start \$(git tag|sort -V|grep '^[0-9]'|tail -n 1|awk 'BEGIN { FS = \".\" } ; { print \$1\".\"\$2\".\"\$3+1 }')"
@erickwilder
Copy link

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment