Difference between revisions of "git diff notes"

From thelinuxwiki
Jump to: navigation, search
(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

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>