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 --checkWorking Example
Example Snippetgit
git diff --check