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

查看:141
本文介绍了从所有目录中删除.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 Export的东西来获取没有.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天全站免登陆