📌  相关文章
📜  与上次提交的差异 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:51:41.044000             🧑  作者: Mango

代码示例1
#For instance, to see the difference for a file "main.c" between now 
#and two commits back, here are three equivalent commands:

$ git diff HEAD^^ HEAD main.c
$ git diff HEAD^^..HEAD -- main.c
$ git diff HEAD~2 HEAD -- main.c