// 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上偵聽;如果您無法將出站連接到該端口,那就可以解釋爲什麼它不起作用。 –