euler/clean_uncommited
Yann Esposito (Yogsototh) 47d411ce4d Added a script to clean repo
2011-12-20 10:21:07 +01:00

8 lines
200 B
Bash
Executable file

#!/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