View git diff of the last commit

To view the diff changes of the last commit, use one of the following:

git log --max-count=1 --patch

OR

git diff @~1
If you liked this posting, please feel free to leave me a comment below.
View this page on GitHub.
Posted .

Comments

Leave a Reply