echo "Sure? [Y/n]" read ans if [ "$ans" != "n" ] then git ls-files --others --exclude-standard | xargs rm ; git reset --hard fi