mirror of
https://github.com/tj/git-extras.git
synced 2026-09-12 08:26:17 -04:00
parent
8e15d4245d
commit
6d49449a4d
|
|
@ -1,7 +1,7 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
echo "Sure? - This command may delete files that cannot be recovered, including those in .gitignore [Y/n]"
|
echo "Sure? - This command may delete files that cannot be recovered, including those in .gitignore [y/N]"
|
||||||
read ans
|
read ans
|
||||||
if [ "$ans" != "n" ]
|
if [ "$ans" == "y" ]
|
||||||
then git clean -d -f -x && git reset --hard
|
then git clean -d -f -x && git reset --hard
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue