xcode svn:ignore 不忽略 xcuserdata
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/11691391/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
svn:ignore not ignoring xcuserdata
提问by Darren
I am using the svn:ignore property for the first time, so I may be misunderstanding something.
我第一次使用 svn:ignore 属性,所以我可能会误解一些东西。
I am working on an iOS application. I have an Xcode project and I want to ignore the xcuserdata folder. Using the Mac Terminal application, I go to the root of my svn repository and try to ignore the folder using:
我正在开发一个 iOS 应用程序。我有一个 Xcode 项目,我想忽略 xcuserdata 文件夹。使用 Mac 终端应用程序,我转到 svn 存储库的根目录并尝试使用以下方法忽略该文件夹:
svn propset svn:ignore path/to/my/folder/MyProject.xcodeproj/xcuserdata .
If I check the svn:ignore property using:
如果我使用以下方法检查 svn:ignore 属性:
svn propedit svn:ignore .
I see:
我懂了:
path/to/my/folder/MyProject.xcodeproj/xcuserdatata
I have committed and updated, but I do an svn status, I still see the folder with a ? mark beside it. Does anyone know what I'm doing wrong? I am using svn version 1.6.17 (r1128011).
我已经提交并更新了,但是我做了一个 svn 状态,我仍然看到带有 ? 在它旁边做标记。有谁知道我做错了什么?我正在使用 svn 版本 1.6.17 (r1128011)。
Edited to add that my question seems similar to this one: SVN just won't ignore a folder, despite propset svn:ignore, but in my case none of the files in the folder I want to ignore seem to be added to svn, nor is the folder that I want to ignore added to svn.
编辑补充一点,我的问题似乎与此类似:SVN 只是不会忽略文件夹,尽管 propset svn:ignore,但在我的情况下,我想忽略的文件夹中的任何文件似乎都没有添加到 svn,也不是我想忽略的文件夹添加到 svn。
回答by MattR
I think you want:
我想你想要:
svn propset svn:ignore xcuserdata path/to/my/folder/MyProject.xcodeproj
ie you want to ignore xcuserdata
at the path.
即你想xcuserdata
在路径上忽略。
回答by John Stephen
There are a couple of ways to fix this globally. One is to edit subversion's config file located at ~/.subversion/config. Look for the line for global-ignores, uncomment it and change it to xcuserdata, like this
有几种方法可以在全球范围内解决此问题。一种是编辑位于 ~/.subversion/config 的 subversion 配置文件。查找 global-ignores 行,取消注释并将其更改为 xcuserdata,如下所示
global-ignores = xcuserdata
Save that and svn status will no longer report xcuserdata folders. That makes the change on your local machine and it will only affect you. To make it on the repository itself so that it affects everybody, navigate to the root of your source tree and use the global-ignores property, like this
保存后 svn status 将不再报告 xcuserdata 文件夹。这会在您的本地计算机上进行更改,并且只会影响您。要将它放在存储库本身以影响每个人,请导航到源代码树的根目录并使用 global-ignores 属性,如下所示
svn propset svn:global-ignores xcuserdata .
Then commit the change to make it active.
然后提交更改以使其处于活动状态。