美文网首页
github加速

github加速

作者: Max____ | 来源:发表于2019-05-27 22:15 被阅读0次

一 代理

HTTP


git config --global http.proxy http://127.0.0.1:1080

git config --global https.proxy http://127.0.0.1:1080

Socket5


git config --global http.proxy 'socks5://127.0.0.1:1080' 

git config --global https.proxy 'socks5://127.0.0.1:1080'

取消代理


git config --global --unset http.proxy

git config --global --unset https.proxy

二 修改hosts


# 1.打开hosts

sudo vim /private/etc/hosts

# 2. 打开站长工具http://tool.chinaz.com,查找下面两个地址对应的最小值TTl ip

13.229.188.59 github.com

151.101.229.194 github.global.ssl.fastly.Net

# 3. 保存(shift + : 输入wq 回车)  

# 4. 输入下面命令使hosts生效

sudo killall -HUP mDNSResponder

相关文章

  • github加速

    因被强了,所以有时访问GitHub会很慢,用绕过dns解析,在本地直接绑定host,该方法也可加速其他因为CDN被...

  • github加速

    一 代理 HTTP Socket5 取消代理 二 修改hosts

  • github加速

    hosts文件位置 刷新

  • github 加速

    github 的下载速度是真的慢,不到 10kb/s,叔可忍婶不可忍啊!搜索网上分享,大致有三种方法: 方法一 修...

  • github加速

    1. 查询以下四个链接的DNS解析地址 github.com assets-cdn.github.com gith...

  • Github加速

    转载:https://blog.csdn.net/networken/article/details/105122...

  • github加速

    GitHub 镜像访问 这里提供两个最常用的镜像地址: https://github.com.cnpmjs.org...

  • GitHub加速

    下载SwitchHosts[https://swh.app/zh/]安装好SwitchHosts后 新建一个本地的...

  • windows环境下nvs安装心得

    github加速 普通页面和仓库访问加速 使用镜像网站https://github.com.cnpmjs.org/...

  • 访问github加速

    hosts文件中添加

网友评论

      本文标题:github加速

      本文链接:https://www.haomeiwen.com/subject/pfkloftx.html