开发者

How do I remove all traces of SVN from my directory?

开发者 https://www.devze.com 2023-03-21 21:48 出处:网络
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:

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

精彩评论

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

关注公众号