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
相关推荐
Rhi63717 小时前
第 2 篇|吐槽向:那些年我们配过的环境,这次终于能跑起来了
react.js·github
孟俊宇-MJY17 小时前
Ansible自动化运维
git·github
用户8244514997019 小时前
点到线段距离怎么求导?一个被忽视的"硬边界"微分难题!
github
用户8244514997019 小时前
一行代码让 sign()、round() 可微:sll-core 源码解读与边界梯度机制。
github
无限进步_19 小时前
【C++】从红黑树到 map 和 set:封装设计与迭代器实现
开发语言·数据结构·数据库·c++·windows·github·visual studio
ZOE^V120 小时前
springcloud笔记
笔记·spring cloud·github
microxiaoxiao20 小时前
Aeroshell 插件系统初体验:打造可自定义的现代智能工作台
github
冴羽yayujs21 小时前
GitHub 前端热榜项目 - 日榜(2026-05-09)
前端·github
DogDaoDao1 天前
【GitHub】TextGen:开源本地大模型运行平台的终极解决方案
人工智能·深度学习·自然语言处理·开源·大模型·github·textgen