Answers for "git compare specific file"

3

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
Posted by: Guest on May-10-2020
0

git compare files with different names

git diff branch1:full/path/to/foo.txt branch2:full/path/to/foo-another.txt
Posted by: Guest on October-08-2020

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language