gpt4 book ai didi

ios - 本地 git 不工作 - Xcode 4.6

转载 作者:行者123 更新时间:2023-11-29 13:17:04 25 4
gpt4 key购买 nike

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

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

enter image description here

但是当我在实际项目中进行任何更改时,即使进行了更改,也不会显示源代码控制标志,即 MA 等。当我尝试按下(或做任何事情)时,它说没有 Remote (有 Remote ......):

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")

最佳答案

经过数小时的重新启动、测试和搜索解决方案……结果证明您所要做的只是更改项目的名称。通过单击主项目文件夹(蓝色)并按回车键,然后将名称更改为其他名称,问题就解决了。

更改项目名称!

关于ios - 本地 git 不工作 - Xcode 4.6,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15468956/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com