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
相关推荐
寻月隐君5 小时前
Surfpool:Solana 上的 Anvil,本地开发闪电般⚡️
后端·web3·github
是垚不是土16 小时前
JumpServer 堡垒机全流程搭建指南及常见问题解决方案
运维·安全·网络安全·github·系统安全·创业创新
F_D_Z16 小时前
conda issue
python·github·conda·issue
eduics20 小时前
Pull Request 中提示`commits incorrectly signed off`
gitee·github
养鱼的程序员1 天前
零基础搭建个人网站:从 Astro 框架到 GitHub 自动部署完全指南
前端·后端·github
mortimer1 天前
Python GUI 应用启动优化实战:从3分钟到“秒开”的深度历程
python·github·pyqt
三道杠卷胡1 天前
【AI News | 20250804】每日AI进展
人工智能·python·语言模型·github·aigc
微凉的衣柜1 天前
GitHub Models:为开源AI项目解决推理难题,让AI更易用、更普及
人工智能·开源·github
华洛1 天前
关于可以控制大模型提升任意产品的排名这件事📈
前端·github·产品经理