Git/diff

from HTYP, the free directory anyone can edit if they can prove to me that they're not a spambot
< Git
Jump to navigation Jump to search

About

git diff lets you see the differences between current edits and the last commit.

  • git diff --staged will show the differences between staged files and the last commit.
  • git diff <branch 1> <branch 2> will show the differences between branch 1 and branch 2.
  • git diff <other branch> will show the differences between other branch and the current branch.

See also git status, which just lists files that have changed.

Links

Documentation