git diff --ignore-space-change
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.
Written by Willem van der Jagt
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Git
Authors
Related Tags
#git
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#