即使一个人,也要活得像军队一样!

git-- clone时候报错,连接超时

现象

1
2
3
$ git clone https://github.com/odoo/odoo.git --depth 1
Cloning into 'odoo'...
fatal: unable to access 'https://github.com/odoo/odoo.git/': Operation timed out after 300013 milliseconds with 0 out of 0 bytes received

测试

1
2
$ ssh -T git@github.com
Hi Loney-Cao! You've successfully authenticated, but GitHub does not provide shell access.

解决

1
2
3
$ git config --global http.proxy

$ git config --global --unset http.proxy
-------------本文结束感谢您的阅读-------------