在 SVN 中处理文件上传
我经常不得不在上传的文件目录上设置 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
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.
你有没有尝试过:
Have you tried:
您的问题没有说明您是否使用 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