From 50e54b8d8522d4c7b6fcfde3256a21e48f39a0dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=82=B5=E3=83=86=E3=81=95=E3=82=84=E3=82=93?= Date: Sat, 13 Mar 2021 21:45:30 +0800 Subject: [PATCH] Update readme.md --- 下载加速Clone、AWS、Git镜像/readme.md | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/下载加速Clone、AWS、Git镜像/readme.md b/下载加速Clone、AWS、Git镜像/readme.md index 793ba5a..2f8d96d 100644 --- a/下载加速Clone、AWS、Git镜像/readme.md +++ b/下载加速Clone、AWS、Git镜像/readme.md @@ -1,6 +1,13 @@ +## github镜像地址 + +网速慢或被封锁,在这个镜像地址登录访问、下载也是可以的。 + +* https://github.com.cnpmjs.org/ +* https://hub.fastgit.org -## git下载 + +### git下载 使用淘宝源加快国内git下载 @@ -13,6 +20,10 @@ npm install -g cnpm --registry=https://registry.npm.taobao.org yarn config set registry https://registry.npm.taobao.org ``` + + + + ### host 将以下host复制进`C:\Windows\System32\drivers\etc\hosts`,再使用命令行输入`ipconfig /flushdns`刷新dns缓存。目的:此host只为解除GFW对GitHub(asw、ssh)下载及克隆的网络限制干扰(不排除服务器吞吐、光缆受地理限制等原因) @@ -152,6 +163,8 @@ $ git clone --depth=1 https://github.com/你的用户名/你的repo.git `--depth=1` 表示只下载最近一次的版本,使用浅复制可以大大减少下载的数据量,这样即使在红色网络环境下,也可以快速的获得代码;若之后想获取完整历史信息,可以使用指令 `$ git fetch --unshallow` +git ssh方面: https://github.zhlh6.cn 加快速度。 + ### 代理方案 ``` @@ -163,6 +176,12 @@ git config --global --unset https.proxy 'socks5://127.0.0.1:1080' git config --global --unset http.proxy 'socks5://127.0.0.1:1080' ``` +反向代理加速 —— Static CDN,用来加载图片、内容等: + +* raw.githubusercontent.com 替换raw.staticdn.net + + + ## sum 下载无非三个问题: