Difference between revisions of "git diff notes"
From thelinuxwiki
(Created page with "File:git basics.jpg get last two commits for a particular file $ '''git log -n 2 <path to file>''' diff between to commits $ diff <commit1> <commit2> <path to file>") |
Latest revision as of 20:58, 10 March 2021
get last two commits for a particular file
$ git log -n 2 <path to file>
diff between to commits
$ diff <commit1> <commit2> <path to file>