Skip to content

Instantly share code, notes, and snippets.

@roh85
Created September 9, 2017 10:26
Show Gist options
  • Save roh85/4adcdcda90e5a20a962975310a967d59 to your computer and use it in GitHub Desktop.
Save roh85/4adcdcda90e5a20a962975310a967d59 to your computer and use it in GitHub Desktop.
Get previous git tag and generate release notes
# Get previous git tag
git describe --abbrev=0 --tags $(git rev-list --tags --skip=1 --max-count=1)
# Generate release notes (in markdown format)
git log ""$tag""...HEAD --pretty=format:'* %s ' --reverse --no-merges
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment