Github 程序员加速 http和ssh代理设置

简单直接的输出干货,复制->粘贴->完活.

Http代理设置

全局

bash 复制代码
git config --global http.proxy socks5://127.0.0.1:10808

指定github

bash 复制代码
git config --global http.https://github.com.proxy socks5://127.0.0.1:10808

SSH代理设置

Linux

配置文件在home目录下的 .ssh/config 其中 nc 程序位于 /usr/bin/nc

bash 复制代码
$ cat ~/.ssh/config

Host github.com
Hostname ssh.github.com
User git
Port 443
ProxyCommand nc -v -x 127.0.0.1:10808 %h %p

Windows

使用Git Bash

bash 复制代码
$ cat ~/.ssh/config

Host github.com
Hostname ssh.github.com
User git
Port 443
ProxyCommand "C:\Program Files\Git\mingw64\bin\connect.exe" -S 127.0.0.1:10808 %h %p
相关推荐
阿里嘎多学长1 小时前
2026-09-07 GitHub 热点项目精选
开发语言·程序员·github·代码托管
峰向AI14 小时前
告别 API 费用! 这个开源工具让你的 AI 助手在本地运行
github
乱码三千16 小时前
使用ComfyUI+MinMax-H3音视频模型生成视频
前端·后端·github
LiaCode17 小时前
别让 AI 把仓库写成“代码平行宇宙”:从 Deslop 看生成前查重
前端·后端·github
m4Rk_18 小时前
【论文阅读】Agent 记忆机制(62):DCM-Agent——用双簇记忆化解优化问题的多范式冲突
论文阅读·人工智能·学习·开源·github
逛逛GitHub18 小时前
GPT-6 Astra 上线 24 小时,看看外网爆火的惊艳玩法。
github
golang学习记18 小时前
Cursor Origin:Cursor要造一个AI时代的Github
人工智能·github·cursor
u13013018 小时前
GitHub 热榜项目:日榜(2026-09-06)
github
mr_g20 小时前
SmartCall源码解析:实时对话轮次拦截器RealtimeTurnInterceptor实现原理
github
zzzll111121 小时前
新手如何使用 GitHub?从零开始的完整入门指南
github