之前试过hosts的方法没有起作用,这里介绍一种曲线救国的方法
使用 GitHub缓存加速网站 加速clone github上的项目
设置git超时参数
git config --global http.lowSpeedLimit 0
git config --global http.lowSpeedTime 999999
方法一(直接clone)
git clone https://gitclone.com/github.com/tendermint/tendermint.git
方法二(设置git参数)
git config --global url."https://gitclone.com/".insteadOf https://
git clone https://github.com/tendermint/tendermint.git