简体   繁体   English

如何从我的目录中删除 SVN 的所有痕迹?

[英]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.

相关问题 如何从我的应用程序目录中删除所有.svn目录 - How to remove all .svn directories from my application directories 我如何删除“ <MAXROWS/> 通过linux / unix命令从目录中所有30个文件中获取字符串? - How can i remove “<MAXROWS/>” string from all 30 files in my directory through linux / unix command? 从工作站除去Eclipse。 如何告诉SVN忽略文件并填充版本标签 - Remove Eclipse from workstation. How do I telll SVN to ignore files and to fill version tags 我目前在Linux上使用SVN。 如何从Windows桌面添加文件? - I currently use SVN with Linux. How do I add files from my Windows Desktop? 如何替换目录中所有文件名中的字符串? (具体来说,我需要从目录中的所有文件名中删除“\\#015” - How can I replace a string in all filenames in a directory? (specifically I need to remove “\#015” from all file names in a directory 如何将所有文件从远程目录下载到本地目录? - How can I download all the files from a remote directory to my local directory? 我的svn状态显示为“ G”。 我该如何解决? - My svn status shows “G”. How do I fix that? svn,无法删除目录 - svn, can't remove a directory 如何从本地工作目录中删除所有未跟踪的子模块? - How to remove all untracked submodules from local working directory? 如何在我的Makefile中包含目录及其所有子目录的标题? - How can I include headers from a directory and all its subdirectories in my makefile?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM