Git changelog: how to get all changes up to a spec

2019-03-09 02:12发布

Is there an easy way or command to get all git commits up to a specific tag to generate an automatic changelog for a project? I always tag my git repos with a version number like v0.1.0 and for instance would like all commits up to tag v0.1.0.

I've looked through the docs but don't seem to find a useful option or command for it: http://git-scm.com/docs/git-log (is down at the moment by the way)

For instance:

$ git log --oneline --decorate

Shows the tags next to commits. I'd like the same, but only up to specific tag.

7条回答
我命由我不由天
2楼-- · 2019-03-09 02:52

There is a very useful gem, the output is written in markdown, add issue support and split commits by tags

https://github.com/kebab-project/katip

查看更多
登录 后发表回答