mirror of
https://github.com/tj/git-extras.git
synced 2026-09-10 23:46:24 -04:00
parent
8e15d4245d
commit
6d49449a4d
|
|
@ -1,7 +1,7 @@
|
|||
#!/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
|
||||
if [ "$ans" != "n" ]
|
||||
if [ "$ans" == "y" ]
|
||||
then git clean -d -f -x && git reset --hard
|
||||
fi
|
||||
|
|
|
|||
Loading…
Reference in a new issue