Github设置clone慢的解决方案

Github设置代理clone依然慢的解决方案

1、前提:

注意: 必须要有科学上网!必须要有科学上网!必须要有科学上网!重要的事情说三遍;

2、http/https方案(git clone时使用http):

  • 查看科学上网的本地代理端口地址(设置-网络或Internet-代理):
    在这里插入图片描述
  • git设置代理相关命令(git-bash):
//设置代理端口,同上面图片的端口地址
git config --global http.proxy http://127.0.0.1:33210
git config --global https.proxy https://127.0.0.1:33210

//查看代理详情
git config --global --get http.proxy
git config --global --get https.proxy
//或
git config --list

//取消代理
git config --global --unset http.proxy
git config --global --unset https.proxy
//或者 进入配置自己调整
git config --global --edit
  • 现在可以开心的从github克隆代码了

3、ssh方案(git clone时使用ssh)

暂未处理,闲了更新;

4、参考资料

https://blog.csdn.net/weimeibuqieryu/article/details/106793645-git设置、查看、取消代理
https://zhuanlan.zhihu.com/p/481574024-设置代理解决github被墙

相关推荐

  1. Github访问太解决方案

    2024-02-02 12:58:08       10 阅读
  2. 【arxiv加载解决方法

    2024-02-02 12:58:08       36 阅读
  3. 国内环境 GitHub 拉取仓库速度缓解方案

    2024-02-02 12:58:08       40 阅读
  4. 批量clone某个github用户所有项目

    2024-02-02 12:58:08       16 阅读

最近更新

  1. TCP协议是安全的吗?

    2024-02-02 12:58:08       18 阅读
  2. 阿里云服务器执行yum,一直下载docker-ce-stable失败

    2024-02-02 12:58:08       19 阅读
  3. 【Python教程】压缩PDF文件大小

    2024-02-02 12:58:08       19 阅读
  4. 通过文章id递归查询所有评论(xml)

    2024-02-02 12:58:08       20 阅读

热门阅读

  1. 第39章 补充定义7 仿射空间解释投影矩阵

    2024-02-02 12:58:08       28 阅读
  2. Python入门指北十七

    2024-02-02 12:58:08       32 阅读
  3. android 音频调试技巧

    2024-02-02 12:58:08       33 阅读
  4. HTML优化SEO的实用技巧

    2024-02-02 12:58:08       28 阅读
  5. undefined reference to symbol ‘pow@@GLIBC_2.0

    2024-02-02 12:58:08       32 阅读
  6. 持续积累分享金融知识

    2024-02-02 12:58:08       24 阅读
  7. SparkSql Join Types详解

    2024-02-02 12:58:08       34 阅读
  8. C++入门学习(二十三)选择结构-switch语句

    2024-02-02 12:58:08       35 阅读
  9. React状态管理Zustand简单介绍和使用

    2024-02-02 12:58:08       32 阅读