Skip to content
Permalink
master
Switch branches/tags
Go to file
 
 
Cannot retrieve contributors at this time
#!/usr/bin/env bash
# git-unws: remove whitespace changes from the unstaged tree
# https://til.hashrocket.com/posts/696df00135-remove-whitespace-changes-then-git-add-p
git diff -w --no-color \
| git apply --cached --ignore-whitespace \
&& git checkout -- . \
&& git reset \
&& git add -p