【发布时间】:2015-06-08 22:35:00
【问题描述】:
我在 OS X Server 上创建了一个名为 myTestRepo 的存储库。对于 HTTPS 访问,我允许登录用户读写。
当我尝试在 Xcode 中添加此存储库时,出现错误。 在存储库地址中,如果我输入
ssh://iMac/git/myTestRepo.git
我收到以下错误
Could not read from remote repository.
如果我进入
https://iMac/git/myTestRepo.git
我收到以下错误
fatal: unable to access 'https://iMac/git/myTestRepo.git/': Could not resolve host:iMac
我做错了什么?
【问题讨论】:
-
我也尝试用服务器名称替换 iMac。结果相同。
-
指定用户名(可能是
git),还要给出repo的完整路径,包括git用户主路径(可能是/Users/git):ssh://git@iMac/Users/git/myTestRepo.git -
谢谢,但没用。
-
尝试从终端命令行克隆 repo:
git clone ssh://git@iMac/Users/git/myTestRepo.git。这应该会给出更详细的错误消息(请在此处复制并粘贴它们)。也可以尝试将iMac替换为 ip 号。
标签: ios iphone xcode macos git