Git 设置代理服务器

2016-03-30  本文已影响387人  笑极

如果使用公司的内部网络,而没办法clone项目下来时,则需要设置git的代理服务器,使用如下命令:

$ git clone https://github.com/nswbmw/N-blog.git
Cloning into 'N-blog'...
fatal: unable to access 'https://github.com/nswbmw/N-blog.git/': Received HTTP code 400 from proxy after CONNECT

$ git config --global http.proxy http://proxy-szn:80

上一篇 下一篇

猜你喜欢

热点阅读