How to see diff between working directory and staging index?

git, git-diff

Solution

Actually, `git diff` is between index and working tree. It just so happens that until you have staged changes to the index (with `git add`) that its contents will be identical to the `HEAD` commit.

`git diff HEAD` is between repo and working tree.

See 365git.tumblr.com post:

Problem

We can see difference between repository and working directory with: ``` git diff ``` We can see difference between repository and staging index with: ``` git diff --staged ``` But how do we see difference between working directory and staging index?

Original source

Related problems