当前位置:   article > 正文

git无法下载_git 无法下载

git 无法下载

首先吃一碗佛跳墙

我用的是蓝黑渐变小猫咪,端口号是7890(记住端口号)

只对github进行起跳

git config --global http.https://github.com.proxy http://127.0.0.1:7890
git config --global https.https://github.com.proxy http://127.0.0.1:7890
  • 1
  • 2

或者:

git config --global http.https://github.com.proxy socks5://127.0.0.1:7890
git config --global https.https://github.com.proxy socks5://127.0.0.1:7890
  • 1
  • 2

对全局进行起跳

git config --global http.proxy http://127.0.0.1:7890
git config --global https.proxy http://127.0.0.1:7890
  • 1
  • 2

到这里问题就应该解决了

取消起跳:

git config --global --unset http.proxy
git config --global --unset https.proxy
  • 1
  • 2

查看已经有的菜单:

git config --global -l
  • 1

如果还不行再试一下更改DNS为8.8.8.8

1、 在任务栏中,点击右下角电脑网络图标,选择打开网络和internet设置
2、 点击右侧打开更改适配器选项
3、 根据网络连接类型WLAN网或以太网,右键选择属性
4、 点击选择iPv4协议,右键打开属性
5、 点击使用下面的DNS服务器地址,设置后保存

声明:本文内容由网友自发贡献,转载请注明出处:【wpsshop】
推荐阅读
相关标签
  

闽ICP备14008679号