Quantcast
Channel: Get commit list between tags in git - Stack Overflow
Viewing all articles
Browse latest Browse all 8

Answer by Balu Ertl for Get commit list between tags in git

$
0
0

If your team uses descriptive commit messages (eg. "Ticket #12345 - Update dependencies") on this project, then generating changelog since the latest tag can de done like this:

git log --no-merges --pretty=format:"%s" 'old-tag^'...new-tag > /path/to/changelog.md
  • --no-merges omits the merge commits from the list
  • old-tag^ refers to the previous commit earlier than the tagged one. Useful if you want to see the tagged commit at the bottom of the list by any reason. (Single quotes needed only for iTerm on mac OS).

Viewing all articles
Browse latest Browse all 8

Trending Articles