1.镜像下载文件
镜像地址:
https://github.com.cnpmjs.org/
https://hub.fastgit.org/
举个栗子:
如果要下载文件,就把
git clone https://github.com/mikecao/umami.git
替换为
git clone https://github.com.cnpmjs.org/mikecao/umami.git
查看git链接:
2.gitclone下载文件
在原先的https://github.com中间加gitclone.com
git clone https://gitclone.com/github.com/tendermint/tendermint.git
可以配置一下git
git config --global url.“https://gitclone.com/”.insteadOf https://
替换完之后,就可以直接git下载原先的地址了
git clone https://github.com/tendermint/tendermint.git