mirror of
https://github.com/tj/git-extras.git
synced 2026-09-10 15:36:21 -04:00
6d49449 changed the git-clear default option to "no" (see #583).
Make the git-clear-soft default the same - it's safer.
8 lines
236 B
Bash
Executable file
8 lines
236 B
Bash
Executable file
#!/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]: "
|
|
read ans
|
|
if [ "$ans" == "y" ]
|
|
then git clean -d -f && git reset --hard
|
|
fi
|