git clone太慢,经常失败解决方法
例如要访问github一个repo:
git clone https://github.com/mwaskom/seaborn.git
只需要使用github的镜像网站git.com.cnpmjs.org,将原本命令替换为
git clone https://github.com.cnpmjs.org/mwaskom/seaborn.git
当使用git clone从GitHub获取仓库时,你可能会遇到速度慢或者连接失败的问题。为了解决这个问题,可以改用GitHub的国内镜像站点,如git.com.cnpmjs.org。只需将原始git clone命令中的URL替换为镜像站点的URL,例如将`https://github.com/mwaskom/seaborn.git`改为`https://github.com.cnpmjs.org/mwaskom/seaborn.git`,即可显著提高克隆速度。
例如要访问github一个repo:
git clone https://github.com/mwaskom/seaborn.git
只需要使用github的镜像网站git.com.cnpmjs.org,将原本命令替换为
git clone https://github.com.cnpmjs.org/mwaskom/seaborn.git
1182
4438
247

被折叠的 条评论
为什么被折叠?