## 方式一:从网站上下载单个文件。 从源码上可以点击 `Raw` ,前提是有梯子。这种方式一般不会采用,所以直接看方式二。 ![](https://wangyuedong-img.oss-cn-beijing.aliyuncs.com/img/Snipaste_2022-04-11_10-52-49.png) ## 方式二:从命令行下载 单个文件其实来自于 `raw.githubusercontent.com` ,但是如果直接 `wget` 或者 `curl` 前提还是要有梯子。在不用梯子的情况下,可以使用镜像源加速节点下载。 ```bash #源地址 https://raw.githubusercontent.com/StriveHeisenberg/Hello_world/raw/master/Hello_world.cpp #加速地址 https://raw.staticdn.net/StriveHeisenberg/Hello_world/raw/master/Hello_world.cpp #无效 https://ghproxy.com/https://raw.githubusercontent.com/StriveHeisenberg/Hello_world/raw/master/Hello_world.cpp #无效 https://github3.mk-proxy.ml/-----https://raw.githubusercontent.com/StriveHeisenberg/Hello_world/raw/master/Hello_world.cpp #无效 https://gh.api.99988866.xyz/https://raw.githubusercontent.com/StriveHeisenberg/Hello_world/raw/master/Hello_world.cpp #无效 ```