Difference between revisions of "Git diff"
Jump to navigation
Jump to search
| Line 28: | Line 28: | ||
* <code>[[git push --dry-run]]</code> | * <code>[[git push --dry-run]]</code> | ||
* <code>[[nothing to commit, working tree clean]]</code> | * <code>[[nothing to commit, working tree clean]]</code> | ||
| + | * [[git log]] | ||
== See also == | == See also == | ||
Latest revision as of 20:57, 20 April 2026
git diff git diff -v
git diff git diff --name-only git diff --stat git diff --cached git diff --exit-code
git --no-pager diff
git diff HEAD^ HEAD
From a branch:
git diff main
git diff --no-index some/path other/path > some_filename
Related[edit]
See also[edit]
git diff: [main | HEAD | --staged | --name-only | --stat | --cached], --helpgit status, git diff, git add, git restore
Advertising: