本地git无法正常工作 - Xcode 4.6

时间:2013-03-18 02:38:55

标签: ios xcode git cocoa-touch version-control

我在我的项目上设置本地git存储库时遇到了很多麻烦。我创建了一个全新的项目并将所有文件拖入其中,确保我检查了git / version控制标记。

现在我在组织者中可以看到存储库(文件系统指向正确的位置),并且可以使用组织者中的所有按钮PullCommit

enter image description here

但是当我在实际项目中进行任何更改时,即使进行了更改,也不会出现MA等源代码控制徽章。当我试图推动(或做任何事情)它说没有遥控器(有遥控器......):

enter image description here

似乎项目实际上并没有真正附加到存储库......

终端

中的

编辑 git status

# On branch master
# Your branch is ahead of 'origin/master' by 1 commit.
#   (use "git push" to publish your local commits)
#
# Changes not staged for commit:
#   (use "git add <file>..." to update what will be committed)
#   (use "git checkout -- <file>..." to discard changes in working directory)
#
#   modified:   CrunchCalculator-1-2.xcodeproj/project.xcworkspace/xcuserdata/Neil.xcuserdatad/UserInterfaceState.xcuserstate
#   modified:   CrunchCalculator-1-2/ViewController.h
#
no changes added to commit (use "git add" and/or "git commit -a")

2 个答案:

答案 0 :(得分:1)

在几小时后重新启动,测试和搜索解决方案......事实证明,您所要做的就是更改项目的名称。通过单击主项目文件夹(蓝色)并按Enter键,然后将名称更改为其他内容,这解决了问题。

更改项目名称!

答案 1 :(得分:0)

而不是使用GIC的XCode使用命令行。

此链接为您提供各种GIT命令的使用git

相关问题