Skip to content

Instantly share code, notes, and snippets.

@ljonesfl
Last active April 19, 2019 18:58
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 ljonesfl/f8a67bf3cbd63ddb0a458ecd0f0bdd7c to your computer and use it in GitHub Desktop.
Save ljonesfl/f8a67bf3cbd63ddb0a458ecd0f0bdd7c to your computer and use it in GitHub Desktop.
git flow release helpers
alias git_push_release="git checkout master && git push && git push --tags && git checkout develop"
alias git_release="git checkout master && git pull && git checkout develop && bump | xargs git flow release start"
alias git_hotfix="git checkout master && git pull && bump --build && bump | xargs git flow hotfix start"
alias git_next_version='bump -p && echo -e "## $(bump)\n\n$(cat versionlog.md)" > versionlog.md && git commit -am bump && git push'
@ljonesfl
Copy link
Author

Updated git_next_version to automatically prepend versionlog.md with the next version.

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