xcode 文件夹不受版本控制,不属于提交
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/9158570/
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
Folder is not under version control and is not part of the commit
提问by VansFannel
I'm developing an iOS app with XCode 4.2 and latest SDK.
我正在使用 XCode 4.2 和最新的 SDK 开发 iOS 应用程序。
I have added to my project a folder with several files. This folder is a real folder in Finder.
我在我的项目中添加了一个包含多个文件的文件夹。此文件夹是 Finder 中的真实文件夹。
When I try to commit those files I get the following message:
当我尝试提交这些文件时,我收到以下消息:
svn: Commit failed (details follow):
svn: '/Users/User1/Fuentes/iPhone/Desarrollos/TurismoCR2/TurismoCR2/Descripciones' is not under version control and is not part of the commit, yet its child '/Users/User1/Fuentes/iPhone/Desarrollos/TurismoCR2/TurismoCR2/Descripciones/021es.html' is part of the commit
How can I fix this error?
我该如何解决这个错误?
Probably I could add these files and folder manually but I don't know how (and I don't want to make a mistake).
可能我可以手动添加这些文件和文件夹,但我不知道如何(而且我不想犯错误)。
回答by JDx
You need to do:
你需要做:
cd /Users/User1/Fuentes/iPhone/Desarrollos/TurismoCR2/TurismoCR2
then:
然后:
svn add Descripciones/
回答by Arun
Try this:
尝试这个:
step 1: svn ci
第 1 步:svn ci
step 2: Then vim or vi will be automatically offered by the svn (with svn diff file name) then type the required string or massage and save it.
第 2 步:然后 svn 将自动提供 vim 或 vi(带有 svn diff 文件名),然后键入所需的字符串或消息并保存。
Done.
完毕。

