fastgithub+git访问github

访问github经常性访问不到,或者想clone代码的时候老是超时,记一下解决方案
git设置代理参考https://zhuanlan.zhihu.com/p/481574024
github访问不到大概率就是你的DNS找不到github的IP地址https://github.com/dotnetcore/FastGithub这个项目可以提供域名的纯净IP解析,提供IP测速并选择最快的IP

首先安装fastgithub https://github.com/dotnetcore/FastGithub

  • 访问github仓库,在releases中选择你需要的架构并下载
  • 安装仓库中部署方式在自己的电脑上面部署一下
  • 现在浏览器访问github应该会好一些,但是clone代码还是会超时

git 设置代理

1
git config --global http.https://github.com.proxy http://127.0.0.1:38457

取消代理

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

设置完代理访问github会好很多,建议将fastgithub作为服务运行


fastgithub+git访问github
https://jgq12138.github.io/2023/07/04/UsageMethodTool/fastgithub_git_github/
作者
JGQ12138
发布于
2023年7月4日
许可协议