github加速服务指南

github加速服务指南

前言

因公司经常有同事反馈无法访问github下载,因此找了下加速验证可行。

用于在中国大陆加速访问 GitHub,但不是我这边部署的因此不对其可靠性负责。

步骤

  1. 复制原始 github 仓库 clone 地址。
  2. 在地址前添加加速服务的域名 https://ghfast.top/

例如:

  • 原地址:https://github.com/redis/redis
  • 代理地址:https://ghfast.top/https://github.com/redis/redis

如果遇上被封失效,您可以访问 https://ghproxy.link/ 获取最新可用域名。

image-20250208092143320

下载公共仓库

获取 https 仓库地址后,添加前缀,发起 git clone:

git clone https://ghfast.top/https://github.com/redis/redis
Bash

下载私有仓库

下载私有仓库时,无法使用基于 SSH 密钥的认证,需要使用 Github 的访问 Token。步骤如下:

  1. 前往 GitHub,创建 Tokens(classic)Fine-grained tokens。请务必确保您创建的 Token 对需要下载的仓库至少 Read-only 权限。

  2. 获取私有仓库的 https 仓库地址后,添加前缀,添加您的 Github 用户名和 Token,发起 git clone:

git clone https://username:token@ghfast.top/https://github.com/redis/redis
Bash

自行部署

请参考:https://github.com/hunshcn/gh-proxy

暂无评论

发送评论 编辑评论


				
|´・ω・)ノ
ヾ(≧∇≦*)ゝ
(☆ω☆)
(╯‵□′)╯︵┴─┴
 ̄﹃ ̄
(/ω\)
∠( ᐛ 」∠)_
(๑•̀ㅁ•́ฅ)
→_→
୧(๑•̀⌄•́๑)૭
٩(ˊᗜˋ*)و
(ノ°ο°)ノ
(´இ皿இ`)
⌇●﹏●⌇
(ฅ´ω`ฅ)
(╯°A°)╯︵○○○
φ( ̄∇ ̄o)
ヾ(´・ ・`。)ノ"
( ง ᵒ̌皿ᵒ̌)ง⁼³₌₃
(ó﹏ò。)
Σ(っ °Д °;)っ
( ,,´・ω・)ノ"(´っω・`。)
╮(╯▽╰)╭
o(*////▽////*)q
>﹏<
( ๑´•ω•) "(ㆆᴗㆆ)
😂
😀
😅
😊
🙂
🙃
😌
😍
😘
😜
😝
😏
😒
🙄
😳
😡
😔
😫
😱
😭
💩
👻
🙌
🖕
👍
👫
👬
👭
🌚
🌝
🙈
💊
😶
🙏
🍦
🍉
😣
Source: github.com/k4yt3x/flowerhd
颜文字
Emoji
小恐龙
花!
上一篇
下一篇