系统:Windows 10 20H2
手动输入法
在要下载到的目录按住shift+右键 选择在此处打开Powershell窗口
如要下载的仓库地址:
通常的git命令下载:
git clone https://github.com/apache/incubator-nuttx.git
CNPMJS.ORG加速通道
git clone https://github.com.cnpmjs.org/apache/incubator-nuttx.git
FastGit.ORG加速通道
git clone https://hub.fastgit.org/apache/incubator-nuttx.git
Cloudflare Workers加速通道
git clone https://github.91chifun.workers.dev//https://github.com/apache/incubator-nuttx.git
如图,下载速度正常
批处理文件
将下列代码复制到txt文件中,重命名文件扩展名为bat,执行后将以FastGit.ORG加速通道的方式下载。
@echo off
set CNPMJS_ORG=https^:^/^/github^.com^.cnpmjs^.org
set FastGit_ORG=https^:^/^/hub^.fastgit^.org
set Cloudflare_Workers=https^:^/^/github^.91chifun^.workers^.dev^/^/
set DotGit=^.git
echo 请输入Git仓库的完整网址:
set /p website=
git clone %FastGit_ORG%%website:~18%%DotGit%
这里以下载
https://github.com/MiaowLabs/MWbalanced-firmware-none
为例