[英]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.我希望它以递归方式清除 SVN,但当然保留我的文件。
You mean killing all the.svn directories?你的意思是杀死所有的.svn 目录? 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 并查找 .svn 目录
find.寻找。 -name "FILE-TO-FIND"-exec rm -rf {} \;
-name“文件查找”-exec rm -rf {} \;
You can fetch a new copy from the svn repository using the svn export
command instead of svn checkout
.您可以使用
svn export
命令而不是svn checkout
从 svn 存储库获取新副本。 The resulting tree will have no SVN bits in it.结果树中将没有 SVN 位。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.