Is there an easy way to automatically do a git checkout on any file that only has whitespace changes? I\'m dealing with both Windows and some code generation that\'s run from Ec
rumpel's answer was the right fix for me. I would just like to complete a bit :
If your changes have been pushed
Once you followed rumpel's procedure, do not push again on your branch. Github will ask you to pull before and you will get every whitespace diff again. Instead create a new branch from your current branch and push the new one :
# From $mybranch
git checkout -b $mybranch-v2
git push --set-upstream origin $mybranch-v2
Then on GitHub close and delete $mybranch