Xcode 7 GM无法验证git存储库

编程入门 行业动态 更新时间:2024-10-27 16:39:32
本文介绍了Xcode 7 GM无法验证git存储库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我可以在没有Xcode 6问题的情况下提交到这个存储库。git在终端中仍然可以正常工作,我可以在本地和远程提交。在Xcode 7中,我可以在本地提交,但不能远程提交。它表示身份验证失败,并且无法重置用户名。 (它变灰了)。我有我的本地git配置文件中正确的用户名。我也尝试创建一个新帐户,但最终导致无法输入userName。

我的git config --local - 列表

core.repositoryformatversion = 0 core.filemode = true core.bare = false core.logallrefupdates = true core.ignorecase = true core.precomposeunicode = true remote.origin.url=git@bitbucket:myUserName / myProject.git remote.origin.fetch = + refs / heads / *:refs / remotes / origin / * branch.failedTryToRename.remote = origin branch.failedTryToRename.merge = refs / heads / master branch.master.remote = origin branch.master.merge = refs / heads / master branch.master1.remote = origin branch.master1.merge = refs / heads / master user.name = myUserName user.email=myUserName@gmail

问题是,您正在使用SSH远程URL:

remote.origin.url=git@bitbucket:myUserName / myProject.git

您需要切换到HTTPS远程URL。

git remote set-url origin bitbucket/myUserName/myProject。 git

或者,放弃。停止尝试使用Xcode的内部git管理。 (这很糟糕,所以没有造成任何伤害。)如果你想要一个GUI,使用SourceTree;它来自同样的人给你Bitbucket和美丽的作品。

I could commit to this repository without problem with Xcode 6. git still works fine in terminal, i can commit both locally and to the remote. In Xcode 7, I can commit locally but not remotely. it says authentication fails and it is impossible to reset the username. (it's greyed out). I have the proper username in my local git config file. I've also tried to create a new account but I end up with the same problem of not being able to enter the userName.

my git config --local --list

core.repositoryformatversion=0 core.filemode=true core.bare=false core.logallrefupdates=true core.ignorecase=true core.precomposeunicode=true remote.origin.url=git@bitbucket:myUserName/myProject.git remote.origin.fetch=+refs/heads/*:refs/remotes/origin/* branch.failedTryToRename.remote=origin branch.failedTryToRename.merge=refs/heads/master branch.master.remote=origin branch.master.merge=refs/heads/master branch.master1.remote=origin branch.master1.merge=refs/heads/master user.name=myUserName user.email=myUserName@gmail

解决方案

The problem is that you are using the SSH remote URL:

remote.origin.url=git@bitbucket:myUserName/myProject.git

You will need to switch to the HTTPS remote URL.

git remote set-url origin bitbucket/myUserName/myProject.git

Alternatively, just give up. Stop trying to use Xcode's internal git management. (It's pretty terrible, so no harm done.) If you want a GUI, use SourceTree; it's from the same people who give you Bitbucket and works with it beautifully.

更多推荐

Xcode 7 GM无法验证git存储库

本文发布于:2023-07-05 07:47:37,感谢您对本站的认可!
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:Xcode   GM   git

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!