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
相关推荐
爱写代码的倒霉蛋2 小时前
新手如何借助agent改造github项目(保姆级教程)
github·新手友好·改造项目
u1301302 小时前
GitHub 热榜项目:日榜(2026-10-07)
驱动开发·github
高频因子挖掘机2 小时前
量化选股到底要不要每天拉全市场股票?从全市场扫描到候选池的行情数据设计
后端·github·api
miofly3 小时前
GitHub 日榜趋势速报 | 2026-10-08
开源·github
Skrrapper3 小时前
AI项目实战日记ep2:把 GitHub Issue 的第一轮脏活交给 AI:做一个 Issue 分诊助手
人工智能·github·issue
高频因子挖掘机3 小时前
复权价格怎么算?从除权因子、时间方向到量化回测避坑
后端·github·api
Maynor在掘金18 小时前
Nano Banana 2.1 来了!21 个真实案例 + 公开提示词,这份 Awesome 合集请收好
github
miofly18 小时前
ChatGPT 账号用户可免费使用 Auto-review 双智能体审查功能
开源·github
高频因子挖掘机18 小时前
第一次补历史行情:按股票拆,还是按日期拆请求?
后端·github·api
高频因子挖掘机18 小时前
300 只股票 × 两年日 K:为什么逐只循环会变成维护灾难?
后端·github·api