Git Config

Aaron Crane perl at
Sat Aug 20 16:28:15 BST 2011

Jason Clifford <jason at> wrote:
> On Sat, 2011-08-20 at 11:32 +0100, Smylers wrote:
>> Hello. How can I make the git diff command use the -b flag (aka
>> --ignore-space-change) by default?
> Have you tried: git config --global apply.whitespace nowarn

AIUI, that's the opposite — it's about dealing with whitespace when
applying patches, not pretending that whitespace changes don't exist
when generating diffs.

My suggestion would be to alias `git d` (or similar) to `git diff -b`,
leaving plain `git diff` unmolested.  But I realise that isn't quite
what you asked for, Smylers.

Aaron Crane **

More information about the mailing list