开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜