Git 获取两个标签之间的提交记录

打算编写一个基于git提交记录自动生成版本记录的脚本

git log --pretty=oneline tagA...tagB (i.e. three dots)

  If you just wanted commits reachable from tagB but not tagA:

  git log --pretty=oneline tagA..tagB (i.e. two dots)

  or

  git log --pretty=oneline ^tagA tagB

  To style the output to your preferred pretty format, see the man page for git-log.

  Example:

1
git log --pretty=format:"%h; author: %cn; date: %ci; subject:%s" tagA...tagB