mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
26 lines
492 B
Plaintext
26 lines
492 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# 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`
|