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
相关推荐
桃花键神26 分钟前
2025远程桌面软件年终推荐榜单:ToDesk、RustDesk、向日葵、UU和QQ远程
github
携欢2 小时前
POrtSwigger靶场之Exploiting XXE using external entities to retrieve files通关秘籍
网络·安全·github
时光Autistic4 小时前
【安装教程】Git安装完整步骤
git·github
-拟墨画扇-6 小时前
Git | 变基操作
git·gitee·github·gitcode
lifewange9 小时前
Git/Gitee/GitHub有什么区别
git·gitee·github
222you10 小时前
智慧社区:调用腾讯云的人脸识别接口完成人脸采集的功能
云计算·github·腾讯云
逛逛GitHub10 小时前
推荐 8 个爷青回 GitHub 开源游戏,太怀念了。
github
QQ__176461982411 小时前
Ubuntu系统克隆Github仓库项目到本地
linux·ubuntu·github
小徐_23331 天前
2025 前端开源三年,npm 发包卡我半天
前端·npm·github
落枫591 天前
如何快速搭建一个JAVA持续交付环境
后端·github