Skip to content

Instantly share code, notes, and snippets.

@bisignam
Created July 6, 2018 09:52
Show Gist options
  • Save bisignam/152c61a3146cc0d8460ecc60dd1f0b0d to your computer and use it in GitHub Desktop.
Save bisignam/152c61a3146cc0d8460ecc60dd1f0b0d to your computer and use it in GitHub Desktop.
git alias for retrieving all the commits since the last maven release
[alias]
release-commits = "!f() { LAST_RELEASE_HASH=`git log --grep \"prepare for next development iteration\" -n 1 --format=format:\"%h\"`; git log --oneline $LAST_RELEASE_HASH..HEAD; }; f"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment