设置github 代理

场景:执行CI需要下载GitHub仓库源码。访问很慢,有时会被中断。因此需要配置github代理。

代理网站更新频繁,可以在搜索引擎搜索关键词`github代理网站`,寻找最新可靠的代理网站。

假设代理网站是:

https://my-gh-proxy.top

单次下载配置:

`git clone https://my-gh-proxy.top/https://github.com/https://github.com/bytedance/UI-TARS-desktop\`

全局配置:

`git config --global url."https://my-gh-proxy.top/https://github.com/".insteadOf https://github.com/\`

真正配置在` ~/.gitconfig`文件里。

```bash

cat ~/.gitconfig

```

```bash

user

name = your-name

email = your-email

core

editor = vim

url "https://my-gh-proxy.top/https://github.com/"

insteadOf = https://github.com/

```

移除全局配置:

`git config --global 00unset url."https://my-gh-proxy.top/https://github.com/".insteadOf`

相关推荐
RxGc6 小时前
# Agent Skills评测:让AI编程工具拥有Google级工程成熟度
人工智能·github
XD7429716367 小时前
科技早报晚报|2026年4月30日:AI 编程终端、代码知识图谱与开源语音模型,今天最值得跟进的 3 个机会
人工智能·科技·github·知识图谱·开源项目·开发者工具
报错小能手8 小时前
讲解GitHub Actions 自动 CI 测试 WorkFlows工作流
ci/cd·github
fix一个write十个8 小时前
从零搭建音视频通话太痛苦?这个 Vue3 CallKit 让你 5 分钟搞定 1v1 + 群聊通话
前端·vue.js·github
报错小能手8 小时前
github的workflows实战
github
九成宫8 小时前
GitHub Copilot CLI中使用skills教程(以aminer-open-skill为例)
github·copilot·skills·copilot cli
拜托啦!狮子9 小时前
本地连接服务器并运行jupyter
服务器·jupyter·github
Hommy8818 小时前
【开源剪映小助手】API 接口文档
开源·github·aigc·视频剪辑自动化·剪映api
laowangpython20 小时前
Rust 入门:GitHub 热门内存安全编程语言
开发语言·其他·rust·github
我科绝伦(Huanhuan Zhou)1 天前
探索技术世界:我的GitHub数据库工具宝库
数据库·github