Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

git diff two commits one file

$ git diff HEAD^^ HEAD main.c
$ # show diff between HEAD(current commit) and HEAD^^(two commits back) for main.c
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #git #diff #commits #file
ADD COMMENT
Topic
Name
6+4 =