加快 GitHub(或其他)方法

加快 GitHub(或其他)方法

打开文件 C:\Windows\System32\drivers\etc\hosts 加上
140.82.112.4 github.com
185.199.108.153 assets-cdn.github.com
199.232.69.194 github.global.ssl.fastly.net

最后 cmd 打开控制台,输入指令 ipconfig /flushdns

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
GitHub的镜像是指GitHub的备用站点或代理站点,可以用来加快访问速度或解决一些网络问题。目前有几个常见的GitHub镜像站点可供选择。 首先是[github.com.cnpmjs.org](github.com.cnpmjs.org),使用方法是直接将 "github.com" 替换为 "github.com.cnpmjs.org"。例如,要克隆一个仓库,可以使用以下命令: ``` git clone https://github.com/xxxxx/xxxxxxx.git git clone https://github.com.cnpmjs.org/xxxxx/xxxxxxx.git ``` 这个镜像站点的速度稍慢,大约为70kb/s。 另一个常见的镜像站点是[mirror.ghproxy.com](mirror.ghproxy.com),使用方式与上面的镜像站点基本一致。主站点的克隆命令为: ``` git clone https://mirror.ghproxy.com/https://github.com/apache/dolphinscheduler.git ``` 备用站点的克隆命令也是一样的: ``` git clone https://mirror.ghproxy.com/https://github.com/apache/dolphinscheduler.git ``` 这个镜像站点的使用方式和速度与上面的镜像站点类似。 此外,还有一个镜像站点是[gitclone.com](gitclone.com),它是直接搜索相关仓库然后进行克隆。如果要克隆一个仓库,可以使用以下命令: ``` git clone https://github.com/tomasr/molokai git clone https://gitclone.com/github.com/tomasr/molokai ``` 综上所述,GitHub的镜像站点有[github.com.cnpmjs.org](github.com.cnpmjs.org)、[mirror.ghproxy.com](mirror.ghproxy.com)和[gitclone.com](gitclone.com),它们可以提供更快的访问速度或解决网络问题。你可以根据自己的需求选择使用其中的一个***

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值