From dae38840f901e3916bacf3f0e61a6405f5680e93 Mon Sep 17 00:00:00 2001 From: grindhold Date: Tue, 1 Sep 2015 13:28:29 +0200 Subject: [PATCH] more concise implementation of git-clear --- bin/git-clear | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/git-clear b/bin/git-clear index 9f081b0..79652e6 100755 --- a/bin/git-clear +++ b/bin/git-clear @@ -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