美文网首页
1 分钟解决 git clone 速度慢的问题

1 分钟解决 git clone 速度慢的问题

作者: 奋斗的小老鼠 | 来源:发表于2020-12-10 10:30 被阅读0次

遇到问题

最近从github clone 一些项目的时候速度极慢,完全受不了,从网上look了很多办法,都以失败告终,直到看到了一篇文章...

解决方案

使用国内镜像,目前已知Github国内镜像网站有github.com.cnpmjs.org和git.sdut.me。速度根据各地情况而定,在clone某个项目的时候将github.com替换为github.com.cnpmjs.org即可。

代码示例

//这是我们要clone的
git clone https://github.com/geektime-geekbang/swift-course

//使用镜像
git clone https://github.com.cnpmjs.org/geektime-geekbang/swift-course

//使用镜像
git clone https://git.sdut.me/geektime-geekbang/swift-course
image.png

相关文章

网友评论

      本文标题:1 分钟解决 git clone 速度慢的问题

      本文链接:https://www.haomeiwen.com/subject/ahulgktx.html