Difference between revisions of "Git/diff"
< Git
Jump to navigation
Jump to search
(local manpage link) |
m (fixed internal link) |
||
Line 4: | Line 4: | ||
<code>git diff --staged</code> will show the differences between staged files and the last commit. | <code>git diff --staged</code> will show the differences between staged files and the last commit. | ||
− | See also [[git | + | See also [[../status|git status]], which just lists files that have changed. |
==Links== | ==Links== | ||
===Documentation=== | ===Documentation=== | ||
* {{l/manpage|git-diff|manpage @ HTYP}} | * {{l/manpage|git-diff|manpage @ HTYP}} | ||
* [https://mirrors.edge.kernel.org/pub/software/scm/git/docs/git-diff.html manpage @ kernel.org] | * [https://mirrors.edge.kernel.org/pub/software/scm/git/docs/git-diff.html manpage @ kernel.org] |
Revision as of 12:33, 31 October 2018
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.
See also git status, which just lists files that have changed.