h7g30g
Last Updated: February 25, 2016
·
538
· wkjagt

git diff --ignore-space-change

git

if you fixed indentation in a file while you were working on it, your diff will be unreadable, because every line will have changes. Unless you use:

git diff  --ignore-space-change

I also added this to my .bashrc:

alias gd="git diff --ignore-space-change ."

so that, when I type gd in a directory, I get all changes in the current directory, ignoring the white space changes.