From c4a9bb46d9d0858975f3b964af2099bd8aaea28e Mon Sep 17 00:00:00 2001 From: Richard Fearn Date: Sat, 19 Nov 2016 17:48:16 +0000 Subject: [PATCH] git-clear-soft: change default yes/no option to "no" (as with git-clear) 6d49449 changed the git-clear default option to "no" (see #583). Make the git-clear-soft default the same - it's safer. --- bin/git-clear-soft | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/git-clear-soft b/bin/git-clear-soft index 8b1542d67..981365906 100755 --- a/bin/git-clear-soft +++ b/bin/git-clear-soft @@ -1,7 +1,7 @@ #!/usr/bin/env bash -echo -n "Sure? - This command may delete files that cannot be recovered. Files and directories in .gitignore will be preserved [Y/n]: " +echo -n "Sure? - This command may delete files that cannot be recovered. Files and directories in .gitignore will be preserved [y/N]: " read ans -if [ "$ans" != "n" ] +if [ "$ans" == "y" ] then git clean -d -f && git reset --hard fi