给定两个标签之间的Git diff [英] Git diff between given two tags
本文介绍了给定两个标签之间的Git diff的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在两个标签之间做一个差异,并在这两个标签之间进行修改,您能告诉我这个命令吗?
$ git diff tag1 tag2
他们:
$ git log tag1..tag2
有时候可能会很方便的看到已更改的文件列表:
$ git diff tag1 tag2 --stat
然后查看某些特定文件的差异:
$ git diff tag1 tag2 - some / file / name
标签只是最近一次对该标签的提交的引用,所以你要对它们之间的提交做一个比较。
另外,一个很好的参考: http://learn.github。 com / p / diff.html
I want to do a diff between two tags and committed changes between those two tags, could you please tell me the command?
解决方案
$ git diff tag1 tag2
or show log between them:
$ git log tag1..tag2
sometimes it may be convenient to see only the list of files that were changed:
$ git diff tag1 tag2 --stat
and then look at the differences for some particular file:
$ git diff tag1 tag2 -- some/file/name
A tag is only a reference to the latest commit 'on that tag', so that you are doing a diff on the commits between them.
Also, a good reference: http://learn.github.com/p/diff.html
这篇关于给定两个标签之间的Git diff的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文