1
0
mirror of https://github.com/jbranchaud/til synced 2026-01-02 22:58:01 +00:00
Files
til/git/whitespace-warnings.md
2015-08-14 16:48:42 -05:00

14 lines
370 B
Markdown

# 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.