Skip to content

Latest commit

 

History

History
13 lines (10 loc) · 370 Bytes

whitespace-warnings.md

File metadata and controls

13 lines (10 loc) · 370 Bytes

Whitespace Warnings

You can configure git to warn you about whitespace issues in a file when you diff it. This is handled by the core.whitespace configuration. Add the following to your .gitconfig file:

[core]
      whitespace = warn

By default, git will warn you of trailing whitespace at the end of a line as well as blank lines at the end of a file.