在国内的话使用代理连接git,需要得到代理端口号,然后
git config --global http.proxy http://127.0.0.1:7890
git config --global https.proxy https://127.0.0.1:7890
重置上述配置文件
git config --global --unset http.proxy
git config --global --unset https.proxy
使用代理连接Git配置指南
在国内,如果需要通过代理访问Git,可以按照如下步骤配置:设置http和https的代理为127.0.0.1的指定端口,如7890。配置命令为`git config --global http.proxy http://127.0.0.1:7890`和`git config --global https.proxy https://127.0.0.1:7890`。若要重置配置,使用`git config --global --unset http.proxy`和`git config --global --unset https.proxy`。
在国内的话使用代理连接git,需要得到代理端口号,然后
git config --global http.proxy http://127.0.0.1:7890
git config --global https.proxy https://127.0.0.1:7890
重置上述配置文件
git config --global --unset http.proxy
git config --global --unset https.proxy
1901
5560

被折叠的 条评论
为什么被折叠?