tj.git-extras/bin/git-clear
grindhold 6d49449a4d fixes #583
put default option in security-answer to 'no'
2016-09-23 22:38:27 +02:00

8 lines
210 B
Bash
Executable file

#!/usr/bin/env bash
echo "Sure? - This command may delete files that cannot be recovered, including those in .gitignore [y/N]"
read ans
if [ "$ans" == "y" ]
then git clean -d -f -x && git reset --hard
fi