简体   繁体   English

xcode 4不与git合作

[英]xcode 4 not cooperating with git

I'm seeing some strange behavior with Xcode 4 and git. 我看到Xcode 4和git有一些奇怪的行为。

  1. Create a new project 创建一个新项目
  2. Right click on files - choose source control then commit. 右键单击文件-选择源代码控制,然后提交。 Add a comment. 添加评论。
  3. Choose source control then push from the file menu. 选择源代码管理,然后从文件菜单中推送。
  4. Xcode returns an error complaining about uncommitted changes?!? Xcode返回一个错误,抱怨未提交的更改?!?

Calling git status from the command line, I can see that some of the internal userdata files are not committed. 从命令行调用git status ,我可以看到一些内部userdata文件未提交。 Shouldn't Xcode know to either skip or include those? Xcode是否不应该跳过或包含这些内容? There is no indication in Xcode that there are any uncommitted files. Xcode中没有迹象表明有任何未提交的文件。 The only way to find them is from the command line. 找到它们的唯一方法是从命令行。

One thought would be to manually create a .gitignore file, but I would assume that Xcode handles all that internally. 一种想法是手动创建.gitignore文件,但是我认为Xcode在内部处理所有这些。

Did I just stumble onto a bug, or is there some standard step that I'm missing? 我只是偶然发现了一个错误,还是缺少一些标准步骤?

Thanks! 谢谢!

Well, a bug is in the eyes of the beholder, isn't it. 好吧,情人眼里有一个错误,不是吗。 Yes, you need to Setup your git ignores for xcode. 是的,您需要为xcode设置git忽略。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM