Skip to content

Commit

Permalink
Merge pull request #603 from richardfearn/git-clear-consistent-defaults
Browse files Browse the repository at this point in the history
git-clear-soft: change default yes/no option to "no" (as with git-clear)
  • Loading branch information
hemanth authored Nov 19, 2016
2 parents 20a9e95 + c4a9bb4 commit 29a5596
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/git-clear-soft
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 29a5596

Please sign in to comment.