How do I remove all traces of SVN from my directory?
I want it to be 开发者_如何学编程cleared of SVN, recursively, but of course keep my files.
You mean killing all the .svn directories? This should do it:
find -name '.svn' -type d -exec rm -rf {} ';'
EDIT: Updated from comments. Doh!
use find and look for the .svn directories
find . -name "FILE-TO-FIND"-exec rm -rf {} \;
You can fetch a new copy from the svn repository using the svn export
command instead of svn checkout
. The resulting tree will have no SVN bits in it.
精彩评论