Moh*_*ain 166 git github git-clone git-bash
我正在尝试克隆angular-phonecat git存储库,但是当我在Git Bash中输入命令时,我收到以下消息:
$ git clone git://github.com/angular/angular-phonecat.git
Cloning into 'angular-phonecat'...
fatal: unable to connect to github.com:
github.com[0: 204.232.175.90]: errno=No error
Run Code Online (Sandbox Code Playgroud)
Chr*_*ial 307
你可能在防火墙后面.尝试通过https克隆 - 有更高的机会不被阻止:
git clone https://github.com/angular/angular-phonecat.git
Run Code Online (Sandbox Code Playgroud)
bng*_*n82 281
你可以让git替换你的协议
git config --global url."https://".insteadOf git://
Run Code Online (Sandbox Code Playgroud)
小智 28
我有同样的错误,因为我使用代理.给出答案,但如果您使用代理,请先使用以下命令设置代理:
git config --global http.proxy http://proxy_username:proxy_password@proxy_ip:port
git config --global https.proxy https://proxy_username:proxy_password@proxy_ip:port
Chr*_*row 14
在防火墙上打开端口9418 - 这是Git用于通信的自定义端口,它通常不在公司或私有防火墙上打开.
| 归档时间: |
|
| 查看次数: |
170997 次 |
| 最近记录: |