git 配置网络代理

版权声明:如果觉得我的博客对你有帮助, 请点赞或评论! https://blog.csdn.net/zongf0504/article/details/88837525

当所处网络需要配置网络代理时,如果git 也需要连接公网环境, 那么git 需要单独配置代理服务器信息, 并不能使用系统配置的全局网络代理.

配置网络代理:

git config --global https.proxy http://xxx.xxx.xxx.xxx:8080
git config --global http.proxy http://xxx.xxx.xxx.xxx:8080

取消网络代理:

git config --global --unset http.proxy
git config --global --unset https.proxy

猜你喜欢

转载自blog.csdn.net/zongf0504/article/details/88837525