Skip to content

Instantly share code, notes, and snippets.

@osallou
Created December 27, 2019 09:12
Show Gist options
  • Save osallou/7bd317aa81783d5543f193e58d01dec1 to your computer and use it in GitHub Desktop.
Save osallou/7bd317aa81783d5543f193e58d01dec1 to your computer and use it in GitHub Desktop.
Generate changelog from git
Put a #changelog tag in commit message and it will be selected by next cmd (from last tag)
Best to prefix commit by kind of modificiation, [feature], [fix]
git log $(git describe --tags --abbrev=0)..HEAD --pretty=format:'* [https://gitlab.inria.fr/osallou/logol2-client/commit/%H](view commit) %s' --reverse | grep "#changelog"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment