mirror of
https://github.com/tj/git-extras.git
synced 2026-09-10 07:26:17 -04:00
more concise implementation of git-clear
This commit is contained in:
parent
ecf7f05f12
commit
dae38840f9
|
|
@ -1,5 +1,5 @@
|
|||
echo "Sure? [Y/n]"
|
||||
read ans
|
||||
if [ "$ans" != "n" ]
|
||||
then git ls-files --others --exclude-standard | xargs rm ; git reset --hard
|
||||
then git clean -d -f -x && git reset --hard
|
||||
fi
|
||||
|
|
|
|||
Loading…
Reference in a new issue