git diff-index

Compare the working directory with a commit or tree object. More information: https://git-scm.com/docs/git-diff-index.

git diff-index {{commit}}

git diff-index {{commit}} {{path/to/file_or_directory}}

git diff-index --cached {{commit}}

git diff-index --quiet {{commit}}