Skip to content

Instantly share code, notes, and snippets.

@ulasozguler
Created October 8, 2015 19:44
Show Gist options
  • Save ulasozguler/129b99516ba27da9b6dc to your computer and use it in GitHub Desktop.
Save ulasozguler/129b99516ba27da9b6dc to your computer and use it in GitHub Desktop.
Create and finish a hotfix with currently uncommited files. Usage: hotfixx branch_name "commit message"
hotfixx() {
git stash
git flow hotfix start $1
git stash pop
git commit -am "$2"
export GIT_MERGE_AUTOEDIT=no
git flow hotfix finish -Fn $1
unset GIT_MERGE_AUTOEDIT
git push origin develop
git push origin master
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment