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
相关推荐
Flandern111110 小时前
Pull Requests(PR)
学习·github·pr
网络研究院11 小时前
AgentGG:开源的代理式 SAST 扫描器
开源·github·工具·网络研究观·agentgg
凤炎忻13 小时前
【GitHub】GitHub Actions 快速入门
github·自动化运维
逛逛GitHub13 小时前
YouTube 一哥手搓了个 AI 工作台,一周就 5 万多 Star 。
github
七牛云行业应用13 小时前
Codex CLI 和 Codex 桌面端完整教程:两种入口的功能对比与选择指南
前端·后端·github
小雨青年14 小时前
GitHub Spark:自然语言能把全栈 AI 应用做到什么程度
人工智能·github
阿里嘎多学长14 小时前
2026-06-08 GitHub 热点项目精选
开发语言·程序员·github·代码托管
本地化文档15 小时前
black-docs-l10n
python·github·gitcode·sphinx
代码钢琴师15 小时前
从零设计一个 Java 分布式限流库:throttle4j 架构解析
github
用户0651281963315 小时前
Go开发者的工具箱:gookitgoutil,900+实用函数汇集
github