Added a script to clean repo
This commit is contained in:
parent
0018ef8137
commit
47d411ce4d
1 changed files with 8 additions and 0 deletions
8
clean_uncommited
Executable file
8
clean_uncommited
Executable 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
|
Loading…
Reference in a new issue