Answers for "git diff woth current file with previous commit"

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

see file from previous commit git

$ git show HEAD~4:src/main.c
Posted by: Guest on October-20-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language