无法将xCode 4.2项目添加到存储库(并让它工作) [英] Can't add xCode 4.2 project to repository (and get it working)

查看:117
本文介绍了无法将xCode 4.2项目添加到存储库(并让它工作)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个新项目,并将所有文件添加到项目文件中。



将我的项目根目录'cd'并执行以下步骤:


  1. rm -rf .git (删除所有剩下的部分,如果有的话)。

  2. git init

  3. git add。 li>
  4. git -m初始提交



<然后我加载我的项目,并对我的代码进行一些更改。 xCode 4.2通过在项目资源管理器中添加'm'(修改)图标来正确地通知它。



我右键单击修改后的文件并选择 源代码管理 - >提交选定的文件 ,它表示:我的项目的工作副本找不到。请确认工作副本是否可到达,然后再试一次。

我刚刚创建的条目在Organizer中为红色,任何想法最新错误?我是否错过了一步?

解决方案

我建议在xCode内部使用内置的GIT支持,而不是命令行git。
在项目创建页面上,您选择要存储项目的文件夹,如果您想使用GIT,则会出现复选框。



所有其他GIT可访问查看File-> Source Control菜单。

因此,请尝试重新创建您的项目,但请确保您已选择GIT支持。


I created a new project and all files are added to the projectfile.

I 'cd' to my project root and does the following steps:

  1. rm -rf .git (remove all left overs if any).
  2. git init
  3. git add .
  4. git -m "initial commit"

Then I load my project, and make some changes to my code. xCode 4.2 notifies this correctly by adding the 'm' (modified) icon in the project explorer.

I right click the modified file and choose "Source control->Commit selected files" and it says: The working copy "of my project" could not be found. Please verify that the working copy is reachable and try again.

The entry I just created is red in Organizer, any ideas whats wrong? Have I missed a step?

解决方案

I suggest using built-in GIT support inside xCode, not a command line git. On project creation page, where you select folder to store project, there is checkbox you mark if you want to use GIT.

All other GIT stuff are accessible view File->Source Control menu.

So, try re-creating your project but make sure you've selected GIT support.

这篇关于无法将xCode 4.2项目添加到存储库(并让它工作)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆