CmdID

CmdID / Commands

git-diff-index

Compare the working directory with a commit or tree object. tldr-pages

On several platforms

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

Compare the working directory with a specific commit

git diff-index commitIdentify

Compare a specific file or directory in working directory with a commit

git diff-index commit path/to/file_or_directoryIdentify

Compare the working directory with the index (staging area) to check for staged changes

git diff-index --cached commitIdentify

Suppress output and return an exit status to check for differences

git diff-index --quiet commitIdentify