more concise implementation of git-clear

This commit is contained in:
grindhold 2015-09-01 13:28:29 +02:00
parent ecf7f05f12
commit dae38840f9

View file

@ -1,5 +1,5 @@
echo "Sure? [Y/n]"
read ans
if [ "$ans" != "n" ]
then git ls-files --others --exclude-standard | xargs rm ; git reset --hard
then git clean -d -f -x && git reset --hard
fi