从所有目录中删除 .svn 文件 [英] Removing .svn files from all directories

查看:27
本文介绍了从所有目录中删除 .svn 文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可能的重复:
如何删除文件夹的 Subversion 控件?
递归删除匹配文件和目录的命令行

我最近使用 cvs2svn 将我的 cvs 存储库转换为 svn,我最近注意到每个目录都有一个名为 .svn 的隐藏文件夹.我当前的构建脚本从我的版本化资源目录中复制了很多目录,最终复制了 .svn 文件.无论如何,在我结帐时是否可以使 svn 不包含这些文件,或者我是否需要编写脚本来删除所有这些 .svn 文件.有许多文件具有这些隐藏的 .svn 目录,因此除非我可以编写递归脚本来执行此操作,否则这将很痛苦,但如果我可以为我的 Windows 安装程序执行此操作,我就不会这样做.有没有一种简单的方法可以阻止 svn 在我的项目中随处放置这个隐藏目录?

I recently converted my cvs repository to svn using cvs2svn and I recently noticed that every directory has a hidden folder called .svn. My current build script copies a lot of directories from my versioned resources directories and it ends up copying the .svn files. Is there anyway to make svn not include these files when I checkout or do I need to write a script to delete all these .svn files. There are many files that have these hidden .svn directories so this would be a pain unless I could write a recursive script to do this but I don't if I can do this for my windows installer. Is there an easy way to stop svn from putting this hidden directory everywhere in my project?

推荐答案

你可以做一个叫做 SVN 导出的事情来获取没有 .svn 目录的文件

You can do a thing called an SVN Export to get the files without the .svn directories

http://svnbook.red-bean.com/en/1.7/svn.ref.svn.c.export.html

这篇关于从所有目录中删除 .svn 文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆