如果使用公司的内部网络,而没办法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