我在为我的一个项目建立一个本地的git存储库时遇到了很多困难。我已经创建了一个全新的项目,并将所有文件拖到其中,确保我检查了git/版本控制滴答。
现在,我在管理器中可以看到存储库(文件系统指向正确的位置),并且可以在管理器中使用Pull和Commit按钮:

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

似乎这个项目实际上并没有连接到存储库.
编辑:终端中的 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")发布于 2013-03-19 01:30:58
经过几个小时的重新启动,测试和寻找解决方案.原来你所要做的就是改变项目的名称。通过单击主项目文件夹(蓝色)并点击enter,然后将名称更改为其他内容,这解决了问题。
更改项目名称!
发布于 2013-03-18 11:56:42
而不是将XCode用于GIT,而是使用命令行。
此链接提供了各种GIT命令git的用法。
https://stackoverflow.com/questions/15468956
复制相似问题