一行命令实现 Github 国内下载加速

后台很多小伙伴反应,国内经常访问不了 GitHub,甚至无法 clone GitHub 上的项目和文件。

今天给大家分享一个超简单的方法,一行命令搞定。

说白了,就是给原始地址加一个镜像。

地址:https://mirror.ghproxy.com/

具体而言:

1. 项目下载

# 原命令
git clone https://github.com/InternLM/InternLM.git

# 改为
git clone https://mirror.ghproxy.com/https://github.com/InternLM/InternLM.git

2. release文件下载

# 原命令
wget https://github.com/ngc660sec/NGCBot/releases/download/V2.1/WeChatSetup-3.9.10.27.exe
# 改为
wget https://mirror.ghproxy.com/https://github.com/ngc660sec/NGCBot/releases/download/V2.1/WeChatSetup-3.9.10.27.exe

3. raw文件下载

# 原命令
wget https://raw.githubusercontent.com/kubernetes/kubernetes/master/README.md -O README.md

# 改为
wget https://mirror.ghproxy.com/https://raw.githubusercontent.com/kubernetes/kubernetes/master/README.md-O README.md

如果本文对你有帮助,欢迎点赞收藏备用!

相关推荐

  1. 一行命令实现 Github 国内下载加速

    2024-07-18 13:52:04       21 阅读
  2. docker配置github仓库ghcr国内镜像加速

    2024-07-18 13:52:04       36 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-07-18 13:52:04       66 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-07-18 13:52:04       70 阅读
  3. 在Django里面运行非项目文件

    2024-07-18 13:52:04       57 阅读
  4. Python语言-面向对象

    2024-07-18 13:52:04       68 阅读

热门阅读

  1. kotlin 退出Activity 平滑动画

    2024-07-18 13:52:04       21 阅读
  2. C语言面试题

    2024-07-18 13:52:04       21 阅读
  3. 1.1 系统架构概述

    2024-07-18 13:52:04       18 阅读
  4. live555 rtsp服务器实战之doGetNextFrame

    2024-07-18 13:52:04       22 阅读
  5. 依赖倒置原则

    2024-07-18 13:52:04       19 阅读
  6. Python使用队列在两个线程中传递数据

    2024-07-18 13:52:04       18 阅读
  7. STM32判断休眠

    2024-07-18 13:52:04       20 阅读