Created
November 30, 2014 20:04
-
-
Save kavon/e29e8bb36ecb0e6cc2fa to your computer and use it in GitHub Desktop.
Remove untracked files and directories in SVN
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# assumes paths have no spaces :) | |
svn status | egrep '^\?' | cut -c8- | xargs rm 2>&1 >/dev/null | sed 's/^rm: *\([^ ][^ ]*\): *is a directory$/\1/g' | xargs rm -r | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment