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
相关推荐
竹之却1 小时前
【Hexo】Hexo搭建教程
github·hexo·blog
是毛毛吧1 小时前
GitHub热榜----前端已死?AionUi 横空出世:首个开源“生成式UI”框架,让 AI 在运行时“手搓”界面
前端·开源·github
不会kao代码的小王2 小时前
深信服超融合 HCI 核心技术解析:aSV、aSAN 与 aNET 的协同架构
运维·服务器·网络·数据库·github
CrankZ2 小时前
[开源][浏览器插件]栈查查--显示 GitHub 仓库所使用的技术栈
开源·github
司机204816 小时前
将virtuoso原理图信息导出到json文件
json·github
Mo_YuO.o17 小时前
git的安装以及本地仓库的创建
git·gitee·github
CoderJia程序员甲17 小时前
GitHub 热榜项目 - 日榜(2026-01-19)
git·ai·开源·llm·github
petunsecn1 天前
多 GitHub 账号与多平台 Git 使用
github
一口面条一口蒜1 天前
R 包构建 + GitHub 部署全流程
开发语言·r语言·github
ONLYOFFICE1 天前
树莓派办公套件:ONLYOFFICE 桌面编辑器安装教程
编辑器·github·onlyoffice