Command

git diff --check

Warn about introduced conflict markers or whitespace errors in the selected diff; does not validate application behavior.

Formal Syntax & Structure

git syntaxgit
git diff --check

Working Example

Example Snippetgit
git diff --check
Git Reference