Skip to content

Commit

Permalink
[git][scripts] rm-others: facility to clean untracked files
Browse files Browse the repository at this point in the history
  • Loading branch information
ptitfred committed Jun 20, 2012
1 parent 400531a commit 0107d7f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions git-rm-others
@@ -0,0 +1,9 @@
#!/bin/bash

RM_OPTIONS=$*

files=$(git ls-files -o --exclude-standard)
if [[ $(echo $files | wc -w ) -gt 0 ]]; then
rm $RM_OPTIONS $files
fi

0 comments on commit 0107d7f

Please sign in to comment.