Github加速
公共镜像
# fastgit.org
https://doc.fastgit.org/
# gitclone.com
https://gitclone.com/
# gitee
https://gitee.com/mirrors
# cnpmjs.org
https://github.com.cnpmjs.org/
加速
克隆加速
# 原地址
git clone https://github.com/kubernetes/kubernetes.git
# 改为(推荐)
git clone https://github.com.cnpmjs.org/kubernetes/kubernetes.git
# 或者
git clone https://hub.fastgit.org/kubernetes/kubernetes.git
# 或者
git clone https://gitclone.com/github.com/kubernetes/kubernetes.git
具体参考镜像的使用文档
Release加速
USER=logseq
REPO=logseq
VERSION=$(wget -qO- -t1 -T2 "https://api.github.com/repos/${USER}/${REPO}/releases/latest" | grep "tag_name" | head -n 1 | awk -F ":" '{print $2}' | sed 's/\"//g;s/,//g;s/ //g')
# 原地址
wget https://github.com/${USER}/${REPO}/releases/download/${VERSION}/Logseq-darwin-x64-${VERSION}.dmg
# 改为
wget https://hub.fastgit.org/${USER}/${REPO}/releases/download/${VERSION}/Logseq-darwin-x64-${VERSION}.dmg
raw文件下载加速
# 原地址
wget https://raw.githubusercontent.com/kubernetes/kubernetes/master/README.md
# 替换为
wget https://raw.staticdn.net/kubernetes/kubernetes/master/README.md
一键免替换镜像地址
替换设置
可以直接在配置文件中动态替换 Github 的地址,这样不用每次克隆的时候都修改地址。
git config --global url."https://github.com.cnpmjs.org/".insteadOf "https://github.com/"
取消设置
git config --global --unset url.https://github.com/.insteadof
查看 Git 配置信息
git config --global --list
参考
https://blog.csdn.net/networken/article/details/105122778
https://www.frankfeekr.cn/2021/03/28/github-speed-up/
https://zhuanlan.zhihu.com/p/337469043
https://juejin.cn/post/6945268563259162638
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 阿里最新开源QwQ-32B,效果媲美deepseek-r1满血版,部署成本又又又降低了!
· AI编程工具终极对决:字节Trae VS Cursor,谁才是开发者新宠?
· 开源Multi-agent AI智能体框架aevatar.ai,欢迎大家贡献代码
· Manus重磅发布:全球首款通用AI代理技术深度解析与实战指南
· 被坑几百块钱后,我竟然真的恢复了删除的微信聊天记录!