See a File’s Last Two Commits with Git Diff

An easy but very useful command to know as a beginner git user.  Find what’s changed since the last commit of a file or you’ve already committed and can’t do a simple git diff.

git diff @~..@ your_file.js

Leave a Reply

Your email address will not be published. Required fields are marked *