Answers for "git diff latest commit"

0

diff from last commit

#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
Posted by: Guest on March-12-2021
3

git diff two commits

-> git diff 0da94be  59ff30c > my.patch
-> git apply my.patch
Posted by: Guest on April-22-2020

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language