问题描述
执行git pull或者git push命令操作github上仓库代码报错,没反应。
- v-p-n环境
- 端口7890
git报错截图
解决方案 设置本机网络代理
- 注意设置的网络代理要和自己的v-p-n的端口一致,道友们可以查看自己的端口是多少以后,再做设置
- 需要设置两次,http和https都要设置
git命令如下:
第一步,先清除掉网络代理
git config --global --unset http.proxy
git config --global --unset https.proxy
第二步,按照自己的端口做代理设置
git config --global http.proxy 127.0.0.1:7890
git config --global https.proxy 127.0.0.1:7890
相关执行命令截图
解决截图
A good memory is not as good as a bad pen...