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
相关推荐
Gladiator5752 小时前
博客记录-day152-力扣+分布式
github
jstart千语3 小时前
【Git】连接github时的疑难杂症(DNS解析失败)
git·github
fanTuanye5 小时前
Git基本使用(很详细)
git·github
Evenknow5 小时前
将"修改源码"改为更专业的"二次开发",体现技术深度
前端·github
uhakadotcom5 小时前
rAthena:快速入门与基础知识详解,附实用示例代码
面试·架构·github
爱吃泡芙的小白白6 小时前
爬虫学习——使用HTTP服务代理、redis使用、通过Scrapy实现分布式爬取
redis·分布式·爬虫·http代理·学习记录
qianmoQ8 小时前
GitHub 趋势日报 (2025年04月24日)
github
前端太佬12 小时前
从拧螺丝到造火箭:Git高阶玩家生存报告
前端·git·github
前端太佬12 小时前
从青铜到塑料:Git逃难指南(附救命指令大全)
前端·git·github
uhakadotcom15 小时前
跨越速运日调用千万,秒级响应!Flink + OceanBase 实时分析方案全解析
后端·面试·github