网址: 方达极客社区。
优点是下载速度快,但是仅提供整个仓库的克隆。
使用方法:

点击图片放大查看

直接一点:
原来的克隆命令:
git clone https://github.com/ycm-core/YouCompleteMe.git
用方达极客社区的加速:
git clone https://gitclone.com/github.com/ycm-core/YouCompleteMe.git
第二个是“ghproxy.link”
此代理加速服务的提供者网站:https://ghproxy.link/,这里会为用户列出当前最新可用的加速域名。
当前可用的是“https://ghfast.top/”,这也是代理加速的使用指南说明,进入网址即可获取使用帮助。
倘若加速域名https://ghfast.top/不可用时,可以访问上面的网站获取最新可用域名。
此加速服务有多种用途,比如:
- 加速 git clone;
- wget 或 curl 获取 Github 上的文件;
- 还可以对:gist.github.com, gist.githubusercontent.com 这些域名的资源进行下载。
用法:
-
clone 加速:
- 原命令:
git clone https://github.com/neovim/neovim.git;
- 加速命令:
git clone https://ghfast.top/https://github.com/neovim/neovim.git
-
获取单个文件:
wget https://ghfast.top/https://github.com/neovim/neovim/releases/download/stable/nvim-linux-x86_64.tar.gz
wget https://ghfast.top/https://raw.githubusercontent.com/neovim/neovim/refs/heads/master/README.md
curl -O https://ghfast.top/https://github.com/neovim/neovim/releases/download/stable/nvim-linux-x86_64.tar.gz
curl -O https://ghfast.top/https://raw.githubusercontent.com/neovim/neovim/refs/heads/master/README.md
此方案下载速度奇快,笔者极度推荐!
第三个是“KGitHub”
使用教程:KGitHub。
有个缺点是下载速度时好时坏。
用raw.kkgithub.com代替raw.githubusercontent.com;
用kkgithub.com代替github.com。
比如:
-
资源URL https://raw.githubusercontent.com/libfuse/sshfs/master/README.md,可以替换为https://raw.kkgithub.com/libfuse/sshfs/master/README.md。
-
克隆仓库:
git clone https://github.com/ycm-core/YouCompleteMe.git
替换为:
git clone https://kkgithub.com/ycm-core/YouCompleteMe.git
第四个是“Gitee”
网址: Gitee。
到国内的代码托管站点 Gitee 导入 GitHub 仓库(需要注册和登录),然后就可以在你的 Gitee 账号中访问导入好了的仓库了。

第五个是利用网络代理的方式
还有的是,在 Linux 操作系统下,可对 git 命令应用网络代理来连接 GitHub。
就是修改当前系统家目录下的 .gitconfig 文件,增加以下的配置:
cat >> ~/.gitconfig <<EOF
[http]
proxy = http://192.168.1.101:8118
EOF
其中, proxy 指向的是可用的 HTTP 网络代理服务器的 IP 和端口。
作者这里是本地局域网内的某个能连接 GitHub 的网络代理服务器的 IP 地址和端口。
要换成你的能够访问 GitHub 的远程或局域网的 IP 和端口。