Xcode 6 Git 没有可用的遥控器

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/27042757/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 06:13:26  来源:igfitidea点击:

Xcode 6 Git No Remotes Available

xcodegitssh

提问by Adam Johns

I have been connected to my remote repo for a while now through Xcode with no problems. All of a sudden today, Xcode (v6.1 which I've had since it came out) tells me to enter a password to connect to my remote repo. My repo is connected via ssh so should I even need a username and password? When I try to pull/push Xcode says "No Remotes Available", but I can successfully pull/push via command line. I have already seen

我已经通过 Xcode 连接到我的远程仓库一段时间了,没有任何问题。今天突然间,Xcode(自从它出现以来我一直拥有的 v6.1)告诉我输入密码以连接到我的远程存储库。我的 repo 是通过 ssh 连接的,所以我还需要用户名和密码吗?当我尝试拉/推 Xcode 时说“没有可用的遥控器”,但我可以通过命令行成功拉/推。我已经看到了

Gitlab - Xcode Can't connect with remote repository

Gitlab - Xcode 无法与远程存储库连接

Xcode 4.4 - no remotes found

Xcode 4.4 - 找不到遥控器

But none of the answers there seem to help me.

但是那里的答案似乎都没有帮助我。

采纳答案by Adam Johns

I have no idea what happened, but I needed to go to Xcode > Preferences > Accounts and delete the repository it had listed there.

我不知道发生了什么,但我需要转到 Xcode > Preferences > Accounts 并删除它在那里列出的存储库。

回答by Greg

I had this same issue. It turns out that all I needed to do was go into "Configure [Project Name]", which is located here:

我有同样的问题。事实证明,我需要做的就是进入“配置 [项目名称]”,它位于此处:

Menu uou need

你需要的菜单

Once I entered the URL here, then I was good to go.

一旦我在这里输入了 URL,我就可以开始了。

回答by John Bushnell

I've had a similar problem a few times, where the problem was the address of the repository wasn't right. In several cases the difference was simply a dash in the name, i.e.

我遇到过几次类似的问题,问题是存储库的地址不正确。在一些情况下,区别只是名称中的一个破折号,即

https://[email protected]/teamname/reponame.git
vs
https://[email protected]/teamname/repo-name.git

https://[email protected]/teamname/reponame.git
vs
https://[email protected]/teamname/repo-name.git

I don't know how the dash went missing, or if at some point the requirement for the dash appeared, but the result was "No remotes available".

我不知道破折号是如何丢失的,或者是否在某个时候出现了破折号的要求,但结果是“没有可用的遥控器”。

To fix the problem I just needed to remove the remote in Xcode under Source Control/Working Copies/Configure and then re-add it with the proper address, as well as remove and re-add the repository under Preferences/Accounts. Once the address was correct for both of these everything worked properly again.

为了解决这个问题,我只需要在 Xcode 中的 Source Control/Working Copies/Configure 下删除遥控器,然后使用正确的地址重新添加它,以及删除并重新添加 Preferences/Accounts 下的存储库。一旦这两个地址都正确,一切都会再次正常工作。

回答by MAhipal Singh

Steps to resolve"No remotes available"

解决“没有可用遥控器”的步骤

i have resolve "No remotes available" using these steps...

我已经使用这些步骤解决了“没有可用的遥控器”...