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
相关推荐
阿里嘎多学长6 小时前
2026-02-07 GitHub 热点项目精选
开发语言·程序员·github·代码托管
leikooo9 小时前
基于 GitHub Actions 的 Notion RSS 自动化部署指南
python·github·rss
微尘hjx10 小时前
【GitHub 代码仓 02】git命令操作示例
git·elasticsearch·github
逛逛GitHub11 小时前
GLM-5 发布了!10 分钟傻瓜化部署 OpenClaw 到飞书。
github
蜜汁小强12 小时前
为 Github 创建本地 .ssh 关联 (RSA 以支持老系统)
运维·ssh·github
雪域迷影14 小时前
sdl3-sample-简明教程,指导如何在包括移动和 Web 在内的各种平台上构建和使用 SDL3
github·c·开源软件·sdl3
laoliu199614 小时前
开源 FRP GUI 客户端
git·开源·github
阿里嘎多学长14 小时前
2026-02-12 GitHub 热点项目精选
开发语言·程序员·github·代码托管
MemOS15 小时前
MemOS OpenClaw 插件测评结果来啦!Tokens 消耗降低 72%+
python·github
MicrosoftReactor15 小时前
技术速递|为 GitHub Copilot 构建智能体记忆系统
github·copilot