LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

git-diff-files

Compare working tree files to index

TLDR

Show unstaged changes
$ git diff-files
copy
Show for specific file
$ git diff-files [file]
copy
Raw output
$ git diff-files --raw
copy
Check for changes
$ git diff-files --quiet
copy

SYNOPSIS

git diff-files [options] [files...]

DESCRIPTION

git diff-files compares the working tree with the index (staging area), operating as a low-level plumbing command that shows unstaged changes. It is used internally by git diff when invoked without arguments and provides the foundation for higher-level diff operations.This command is part of Git's plumbing layer, designed for scripting and automation rather than daily interactive use. It can produce various output formats including raw diff data, patch format, or simple file lists, making it suitable for integration into build tools, pre-commit hooks, or custom Git workflows.

PARAMETERS

--raw

Raw diff format (default).
--quiet
Exit with 1 if there are differences, 0 otherwise. Disables output.
-p, --patch
Generate patch output.
--stat
Show diffstat summary.
--name-only
Show only names of changed files.
--name-status
Show names and status (added, modified, deleted) of changed files.
-0
Omit diff output for unmerged entries, just show "Unmerged".

INSTALL

sudo apt install git
copy
sudo dnf install git
copy
sudo pacman -S git
copy
sudo apk add git
copy
sudo zypper install git
copy
brew install git
copy
nix profile install nixpkgs#git
copy

SEE ALSO

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid