Skip to content

Instantly share code, notes, and snippets.

@schmunk42
Last active June 5, 2019 13:32
Show Gist options
  • Save schmunk42/9f7d3a0afbadfe7ba2e05bc30212238a to your computer and use it in GitHub Desktop.
Save schmunk42/9f7d3a0afbadfe7ba2e05bc30212238a to your computer and use it in GitHub Desktop.
Bash git changelog draft function
# Usage: git-changelog-markdown > changelog-draft.md
git-changelog-markdown () {
git log --topo-order --pretty="format:%d - %s" | sed 's/(tag.*) /\
### & \
/' \
| grep -v 'Merge pull request' \
| grep -v 'Merge commit'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment