Xcode 7 Git找不到远程存储库 [英] Xcode 7 Git can’t find remote repositories

查看:118
本文介绍了Xcode 7 Git找不到远程存储库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以推动&在Xcode 6.X中没有任何问题的情况下拉取这个存储库,但它在Xcode 7上不起作用。

I could push & pull this repository without any problems on Xcode 6.X, but it doesn’t work on Xcode 7.

设置与Xcode 6.X相同。我试图输入用户名和密码仅用于确认,但似乎没有意义。我使用了正确的SSH密钥作为身份验证,但偏好设置为远程存储库找不到。

The setting is the same as Xcode 6.X. I tried to enter Username and Passphrase just for confirmation, but seems like no meaning. I used the right SSH Keys as Authentication, but the preferences say "The remote repository could not be found."

签出一个从未在Xcode 6.X上使用过的新存储库,在Xcode 7.0和更高版本上也存在相同的问题。

Checking out a new repository, that have been never used on Xcode 6.X ,also had the same issue on Xcode 7.0 and higher.

我想知道是否有人对此问题有任何解决方案。

I’d like to know if anyone has any solutions for this problem.

推荐答案

如果远程设置了,我有一个简单的解决方案,并且因为找不到远程仓库 信息。去终端。打开你的项目文件夹。

I have an easy solution if your remote is set and suddenly when you can't pull because of "no remote repository found" message. Go to terminal. Open your project folder. do

git pull origin v6.2

如果您有未提交的提交,您可能需要:

If you have commits that were not made, you might have to:

git reset --hard
git commit -m "Commit Message"

您将能够从Xcode中获得更多的好处。

After you pull it one, you will be able to pull more with no problem from Xcode.

这篇关于Xcode 7 Git找不到远程存储库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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