HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

git diff-files — Compare files using their sha1 hashes and modes. More information: <https://git-scm.com/docs/git-dif

Submitted by: @import:tldr-pages··
0
Viewed 0 times
git diff-filescommandfilessha1clitheirusingcompare

Problem

How to use the git diff-files command: Compare files using their sha1 hashes and modes. More information: <https://git-scm.com/docs/git-diff-files>.

Solution

git diff-files — Compare files using their sha1 hashes and modes. More information: <https://git-scm.com/docs/git-diff-files>.

Compare all changed files:
git diff-files


Compare only specified files:
git diff-files {{path/to/file}}


Show only the names of changed files:
git diff-files --name-only


Output a summary of extended header information:
git diff-files --summary

Code Snippets

Compare all changed files

git diff-files

Compare only specified files

git diff-files {{path/to/file}}

Show only the names of changed files

git diff-files --name-only

Output a summary of extended header information

git diff-files --summary

Context

tldr-pages: common/git diff-files

Revisions (0)

No revisions yet.