add a git-mrproper script which will *delete* all unversioned files
This commit is contained in:
parent
9c4054b20c
commit
a37d29c4ee
1 changed files with 11 additions and 0 deletions
11
admin/git-mrproper.sh
Executable file
11
admin/git-mrproper.sh
Executable file
|
|
@ -0,0 +1,11 @@
|
|||
#!/bin/sh
|
||||
if test "$1" = "yes"; then
|
||||
git ls-files -o | xargs rm -f
|
||||
else
|
||||
(
|
||||
echo "'git-mrproper.sh yes'"
|
||||
echo "would delete following files:"
|
||||
echo
|
||||
git ls-files -o | while read file; do echo " $file"; done
|
||||
) | less
|
||||
fi
|
||||
Loading…
Reference in a new issue