What does git diff show?

Git Easy

Git — Easy

What does git diff show?

Key points

  • Git diff is used for comparing changes
  • It shows line-by-line differences, not just file names
  • The comparison can be between various states, like working directory and staging area
  • Git diff does not summarize changes, it shows the actual differences

Ready to go further?

Related questions