0

I want to see a context diff for only my indexed changes with git diff.

Here's what I'm seeing:

C:\GitProject\DiffTestProject [master +0 ~1 -0]> git diff
diff --git a/a.txt b/a.txt
index 07d4aba..e9944e6 100644
Binary files a/a.txt and b/a.txt differ
Rob Bednark
  • 25,981
  • 23
  • 80
  • 125
King Jk
  • 1,069
  • 14
  • 22

1 Answers1

0
git diff filename # see uncommitted changes
git diff --cached # see the difference between index and last commit.
Rob Bednark
  • 25,981
  • 23
  • 80
  • 125
johnMa
  • 3,291
  • 24
  • 37