git diff ignore whitespace and newlines code example Example: git ignore whitespace git diff --ignore-space-change