// This works
git clone https://github.com/foreverjs/forever.git
// This one also works
git clone git@github.com:foreverjs/forever.git
// This one didn't work
git clone git://github.com/foreverjs/forever.git
第三个错误的错误信息是:
Cloning into 'forever'...
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
据我所知,通过SSH或HTTPS进行的git克隆比
git://
协议更受限制。 我真的很困惑为什么我会收到这个错误消息,因为git://
协议甚至不需要进行身份验证。现在,GitHub是否只允许通过SSH或HTTPS进行git克隆呢,还是我漏掉了什么?
[url "git@github. om:"]
insteadOf = https://github.com/
。我一直想知道为什么它试图联系“github. om”。真是奇怪^^ - jakob.j