github国内加速代理访问

注意:不支持 SSH Key 方式 git clone 下载.

git clone 公用仓库

命令

git clone https://mirror.ghproxy.com/https://github.com/stilleshan/ServerStatus

详解:git clone https://mirror.ghproxy.com/命令后面添加github 仓库地址即可。

git clone 私有仓库

命令

git clone https://user:your_token@ghproxy.com/https://github.com/your_name/your_private_repo

Clone 私有仓库需要用户在 Personal access tokens 申请 Token 配合使用.

使用culr 或者 wget 下载文件或者执行脚本


wget https://mirror.ghproxy.com/https://github.com/stilleshan/ServerStatus/archive/master.zip

# githubusercontent
wget https://mirror.ghproxy.com/https://raw.githubusercontent.com/stilleshan/ServerStatus/master/Dockerfile

curl -O https://mirror.ghproxy.com/https://github.com/stilleshan/ServerStatus/archive/master.zip

# githubusercontent
curl -O https://mirror.ghproxy.com/https://raw.githubusercontent.com/stilleshan/ServerStatus/master/Dockerfile

同上思路使用

docker 镜像代理

转换镜像地址


docker pull dockerproxy.com/mattrayner/lamp:latest

命令详解:docker pull dockerproxy.com/后面跟着docker镜像:后面使用镜像标签

©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容