View git diff of the last commit

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

git diff @~1

OR

git diff @{1} @{0}
This post is available on GitHub.
Posted .

Comments

Leave a Reply