2016-04-11 38 views

回答

4

您可以使用git diff以下語法比較兩個任意提交:

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

這是查看任意兩個之間的變化。

這些提交可以使用任何種類的revision notation,包括簡單標籤名稱。因此,對於兩個標籤tag1tag2,命令可能看起來像這樣:

git diff tag1 tag2 -- path/to/file 
相關問題