1

How can I make git completely ignore any whitespace? I don't care even if any whitespace exists. I just want git not to track any whitespace.

i.e I want git to never trouble me about whitespaces when I commit, create or apply patch, merge or anything.

Also I don't want git to remove any whitespace automatically!

Mudassir Razvi
  • 1,593
  • 10
  • 29

1 Answers1

0

There's no way to make git ignore whitespace changes, that I know, but you can disable warnings.

This should (globally) disable the warnings that are enabled by default:

git config --global core.whitespace -trailing-space,-space-before-tab

What changes you do make will still be part of your commits.

otus
  • 4,957
  • 29
  • 46