Skip to content
Afa' Afa'

Changelog between two tags

Generate a changelog between two Git tags with git log and a custom pretty format.

1 min read Updated

git log can produce a changelog for a release range: this command lists the commits between two tags, oldest first, in a bullet-friendly format. The command is below.

Source: https://coderwall.com/p/5cv5lg/generate-your-changelogs-with-git-log

changelog.sh

bash
git log v2.0.0-beta.5...v2.0.0 --pretty=format:'- %s (%H)' --reverse
Something wrong or want to discuss this article? Get in touch

Search articles and projects

Type to filter articles and projects. Use the arrow keys to move through results and Enter to open one. Press Escape to close.