Feedback

Chat Icon

Learn Git in a Day

Everything you need, nothing you don't

Tricks That Save You Time
75%

Compare Changes Like a Detective

You've already used git diff to see uncommitted changes. But there are a few variations worth knowing.

To see what's staged (ready to commit) vs. what's already committed:

git diff --staged

This is useful when you've run git add and want to review exactly what will be in your next commit before you run git commit.

Learn Git in a Day

Everything you need, nothing you don't

Enroll now to unlock all content and receive all future updates for free.