获取git中标签之间的提交列表 [英] Get commit list between tags in git

查看:301
本文介绍了获取git中标签之间的提交列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我有一个代表版本版本的标签的git仓库。



如何获得两个标签之间的提交列表(如果可能,使用漂亮的格式)?

解决方案

git log --pretty = oneline tagA ... tagB (即三个点)

如果您只想提交可从tagB到达但不是tagA的提交:



git log --pretty = oneline tagA .. tagB (即两个点)



git log --pretty = oneline ^ tagA tagB


If I've a git repository with tags representing the versions of the releases.

How can I get the list of the commits between two tags (with a pretty format if is possible) ?

解决方案

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

这篇关于获取git中标签之间的提交列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆