To share this page click on the buttons below;
GIT diff
git diff
is the command to see differences between different revision of the project.
Used without other arguments it compares the staged area and the working copy.
Compare 2 versions
To show the comparison between 2 revisions identified by a revision ID:
git diff <revision_id1> <revision_id2>
Compare staged
Show the comparison between 2 staged files and the last commit.
git diff --staged
git diff --cached
To share this page click on the buttons below;