在 SVN 中处理文件上传

发布于 2024-11-07 10:49:52 字数 203 浏览 1 评论 0原文

我经常不得不在上传的文件目录上设置 svn:ignore ,只是因为 svn:ignore 不能按预期工作。我在 NetBeans 工作,我们的网站一直在大力开发。我厌倦了“忽略”这些文件夹,因为它根本无法按照我的预期工作。我们有几个上传目录,并希望版本控制完全忽略它们。我想到可能使用符号链接将文件存储在本地计算机上的单独文件夹中,同时将实际目录留空。这听起来像是一个合乎逻辑的解决方案吗?

I'm constantly having to propset svn:ignore on my uploaded files directories simply because svn:ignore doesn't work as expected. I'm working in NetBeans and our site is constantly under heavy development. I'm sick of "ignoring" the folders because it simply doesn't work how I expect it to. We have several upload directories and would like them to be completely ignored from version control. I thought of possibly using symlinks to store the files in a separate folder on my local machine, while leaving the actual directory empty. Does this sound like a logical solution?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

忆依然 2024-11-14 10:49:52

svn:ignore 整个目录,或者编写 svn:ignore 规则来忽略所有内容

除此之外,您可以重组您的工作流程以拥有非 svn 控制的上传区域。

目前还不清楚为什么您会将一个实际上不是源代码一部分的目录签入 SVN 进行修改,但也许是有原因的。如果可能的话,只将您真正想要修改的部分签入 SVN。

svn:ignore the entire directory, or write a svn:ignore rule to ignore everything

Beyond that, you could restructure your work flow to have a non svn controlled upload area.

It isn't clear why you would have a directory which isn't actually part of your source code checked into SVN for revisioning purposes, but perhaps there is a reason. If at all possible, only check into SVN that which you really wish to revision.

最偏执的依靠 2024-11-14 10:49:52

你有没有尝试过:

svn propset --recursive svn:ignore upload_directory_name *

Have you tried:

svn propset --recursive svn:ignore upload_directory_name *
静水深流 2024-11-14 10:49:52

您的问题没有说明您是否使用 Netbeans Subversion 插件。如果是这种情况,请务必检查 始终排除提交文件夹在 Netbeans 的 SVN 中

Your question doesn't state if you are using Netbeans Subversion plugin. If this is the case be sure to check Always exclude folders from committing in SVN for Netbeans

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文