2008-09-11 24 views

回答

9

您可以使用..(和...)运算符传递修订范围。的

git diff 6d0918...HEAD 

而不是给(略)SHA哈希值,也可以表示相对于分支和标签的修订:

git diff HEAD~4 # shows the diff from the last four commits to the current one 

看一看一章中的git-rev-parse manual page

“指定修订版本”
相关问题