Xcode 7 GM无法验证git存储库 [英] Xcode 7 GM can not authenticate git repository

查看:146
本文介绍了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.org: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.com

< a href =https://i.stack.imgur.com/wZbXr.jpg =nofollow noreferrer>

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

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

您需要切换到HTTPS远程URL。

  git remote set-url origin https://bitbucket.org/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.org: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.com

解决方案

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

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

You will need to switch to the HTTPS remote URL.

git remote set-url origin https://bitbucket.org/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存储库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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