查询ip地址三个地方,ipaddress,ip.cn, 站长站ip地址
官方:raw.githubusercontent.com 镜像:raw.githubusercontents.com (多个s)
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
一键免替换镜像地址
替换设置
可以直接在配置文件中动态替换 Github 的地址,这样不用每次克隆的时候都修改地址
git config –global url.”https://github.com.cnpmjs.org/”.insteadOf “https://github.com/” |
测试
git clone https://github.com/kubernetes/kubernetes.git |
取消设置
git config –global –unset url.https://github.com/.insteadof |
查看 Git 配置信息
git config –global –list |
raw文件下载加速
#原地址:
wget https://raw.githubusercontent.com/kubernetes/kubernetes/master/README.md
#替换为
wget https://raw.staticdn.net/kubernetes/kubernetes/master/README.md
或
wget https://raw.fastgit.org/openfaas/store/master/functions.json
提供web界面的github资源加速网站:
GitHub 文件加速:https://gh.api.99988866.xyz/
GitHub 文件加速:https://gh.zyhui98.workers.dev/
Github仓库加速:https://github.zhlh6.cn/
Github仓库加速:http://toolwa.com/github/
已知的 GitHub 镜像(含失效站点)
域名 | https | 克隆加速 | zip 加速 | releases 加速 | 主机服务商 | 服务器所在地 |
---|---|---|---|---|---|---|
https://github.com.cnpmjs.org | ✓ | ✓ | ✗ | ✗ | dnspod | 香港 |
✗ | ✓ | ✗ | ✓ | ? | 日本 | |
https://github.wuyanzheshui.workers.dev | ✓ | ✗ | ✓ | ✓ | Cloudflare | 美国 |
https://github.bajins.com | ✓ | ✗ | ? | ? | Cloudflare | 美国 |
https://doc.fastgit.org | ✓ | ✓ | ✓ | ✓ | fastgit | 香港 |
https://gitclone.com | ✓ | ✓ | ✗ | ✗ | Aliyun | 杭州 |
✓ | ✓ | ✓ | ✓ | Quadranet | 美国 |
原文:https://blog.csdn.net/networken/article/details/105122778
留言
为啥看不到
ok