Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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