一、镜像域名替换
将clone地址里面的github.com
替换为镜像域名github.com.cnpmjs.org
,如:
如:
https://github.com/material-components/material-components-android.git
替换为
https://github.com.cnpmjs.org/material-components/material-components-android.git
如果克隆(clone)仓库成功后,拉取(pull)失败,可以重新将远程地址设置为github.com
的仓库地址
git remote set-url origin https://github.com/material-components/material-components-android.git