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
相关推荐
黑客思维者8 小时前
Python大规模数据处理OOM突围:从迭代器原理到TB级文件实战优化
开发语言·python·github·迭代器·oom
草梅友仁10 小时前
草梅 Auth 1.11.1 版本发布与 AI 辅助代码重构实践 | 2025 年第 49 周草梅周报
开源·github·ai编程
ChinaRainbowSea11 小时前
github 仓库主页美化定制
java·后端·github
粥里有勺糖12 小时前
视野修炼-技术周刊第128期 | Bun 被收购
前端·javascript·github
熊猫钓鱼>_>12 小时前
GitHub Actions CI/CD流水线实战指南
ci/cd·github
旅之灵夫14 小时前
【GitHub项目推荐--Agent Rules:AI编码助手的规则引擎与知识库系统】
github
@YDWLCloud16 小时前
用腾讯云国际版搭建全球加速架构:5 分钟实现多地访问提速
服务器·架构·云计算·github·腾讯云
skywalk816316 小时前
为一个库设置多个远程更新站用于git push,比如gitcode github等
git·github·gitcode
_OP_CHEN16 小时前
【Git原理与使用】(一)告别文件混乱!Git 初识:从版本灾难到高效管理的终极方案
linux·运维·git·github·运维开发·版本控制·企业级组件
0 0 017 小时前
git,github使用&快速上手指南
git·github