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

Comments

Leave a Reply