2016-04-11 41 views

回答

4

您可以使用git diff以下语法比较两个任意提交:

git diff [--options] <commit> <commit> [--] [<path>…​] 

这是查看任意两个之间的变化。

这些提交可以使用任何种类的revision notation,包括简单标签名称。因此,对于两个标签tag1tag2,命令可能看起来像这样:

git diff tag1 tag2 -- path/to/file 
相关问题