加速github

20250612133957888-屏幕截图 2025-06-12 134004

命令提示符启动,在执行命令前先关闭浏览器。

谷歌浏览器

"C:\Program Files\Google\Chrome\Application\chrome.exe" --host-rules="MAP github.com octocaptcha.com, MAP github.githubassets.com yelp.com, MAP *.githubusercontent.com yelp.com" --host-resolver-rules="MAP octocaptcha.com 140.82.116.4, MAP yelp.com 199.232.240.116"

macOS

/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --host-rules="MAP github.com octocaptcha.com, MAP github.githubassets.com yelp.com, MAP *.githubusercontent.com yelp.com" --host-resolver-rules="MAP octocaptcha.com 140.82.116.4, MAP yelp.com 199.232.240.116"

微软Edge浏览器

在浏览器设置系统和性能启动增强关闭。

"C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe" --host-rules="MAP github.com octocaptcha.com, MAP github.githubassets.com yelp.com, MAP *.githubusercontent.com yelp.com" --host-resolver-rules="MAP octocaptcha.com 140.82.116.4, MAP yelp.com 199.232.240.116"

git命令

  • 下载github-hosts 解压,运行github-hosts.bat
  • 设置git使用代理
  • git config --global http.proxy http://127.0.0.1:8180

     

  • 使用git命令,类似
  • git -c http.sslVerify=false clone https://github.com/feng2208/github-hosts.git

     

  • 取消使用代理
     
  • git config --global --unset http.proxy

     

© 版权声明
<
THE END
喜欢就支持一下吧
分享
评论 抢沙发
头像
欢迎您留下宝贵的见解!
提交
头像

昵称

取消
昵称

    暂无评论内容