Created
November 20, 2014 03:32
-
-
Save bquistorff/7b46388ad7780115a726 to your computer and use it in GitHub Desktop.
Remove non-versioned files
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 | |
# Removed non-versioned files recursively (otherwise pipe through grep -v '\\') | |
svn status | grep ^\? | cut -c 9- | sed -e 's/\\/\//g' | xargs -Ifile rm -rf file |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment