// This works
git clone https://github.com/foreverjs/forever.git
// This one also works
git clone [email protected]: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://
协议甚至不需要进行身份验证。
github现在只允许通过SSH或HTTPS的git clone,或者我错过了这里的东西?
我从github检查并验证公钥已正确设置。正如你所看到的,通过SSH和HTTPS,git clone没有问题。仍然不明白这里真正的问题 –
@ChuangFu您的网络过滤了吗? git协议服务器在端口9418上侦听;如果您无法将出站连接到该端口,那就可以解释为什么它不起作用。 –