tj.git-extras/bin/git-clear

8 lines
180 B
Bash
Executable file

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