github國內(nèi)加速代理訪問

注意:不支持 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 下載文件或者執(zhí)行腳本


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鏡像:后面使用鏡像標簽

?著作權歸作者所有,轉載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務。

相關閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容