Git/diff
Jump to navigation
Jump to search
About
git diff lets you see the differences between current edits and the last commit.
git diff --stagedwill show the differences between staged files and the last commit.git diff <branch 1> <branch 2>will show the differences betweenbranch 1andbranch 2.git diff <other branch>will show the differences betweenother branchand the current branch.
See also git status, which just lists files that have changed.