Last active
August 29, 2015 14:22
-
-
Save magicianzrh/32c69ed3e8a6a3a17d02 to your computer and use it in GitHub Desktop.
svn rm unversioned shell for mac
This file contains hidden or 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
# 删除svn没有进入版本的文件 | |
function svn_rm_unversioned { | |
svn st | grep "^?" | cut -b 9- | while read FILENAME; | |
do | |
FILENAME=`echo ${FILENAME} | sed 's/ /\\\ /g'` | |
rm -Rf ${FILENAME} | |
done | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment