Added a script to clean repo

This commit is contained in:
Yann Esposito (Yogsototh) 2011-12-20 10:21:07 +01:00
parent 0018ef8137
commit 47d411ce4d

8
clean_uncommited Executable file
View file

@ -0,0 +1,8 @@
#!/usr/bin/env zsh
[[ $1 != "-f" ]] && { print "Use -f option to delete:" }
for fic in $(git status | tail -n +5| head -n -1 |awk '{print $2}'); do
print '[?]' $fic
[[ $1 = "-f" ]] && \rm $fic
done