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
View this page on GitHub.
Posted .

Comments

Leave a Reply