Nevermind, just found about `git rebase --whitespace=fix`