What does git diff –staged (or –cached) show?

Git Medium

Git — Medium

What does git diff –staged (or –cached) show?

Key points

  • Highlights staged changes
  • Compares to last commit
  • Shows next commit content
  • Excludes working directory changes

Ready to go further?

Related questions