mirror of
https://github.com/tj/git-extras.git
synced 2026-09-10 15:36:21 -04:00
8 lines
215 B
Bash
Executable file
8 lines
215 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
echo -n "Sure? - This command may delete files that cannot be recovered, including those in .gitignore [y/N]: "
|
|
read ans
|
|
if [ "$ans" == "y" ]
|
|
then git clean -d -f -x && git reset --hard
|
|
fi
|