osaet/content/posts/git-ssh-proxy-configuration.md
yarnom f0b50d13ea feat: add admin publishing workflow and yar theme
Add Go/Postgres admin APIs, Angular admin UI, manual build flow, asset uploads, markdown import/export, configurable slug generation, and the Yar reading theme. Exclude local docs and generated development artifacts from version control.
2026-06-01 15:48:04 +08:00

29 lines
742 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
id: fc35948f-dec0-4c86-9482-005d19313e01
slug: git-ssh-proxy-configuration
title: 给 GIT 和 SSH 配置代理
summary: ""
status: published
tags: []
cover: ""
version: 1
slug_source: manual
slug_locked: true
published_at: "2022-11-10T20:38:27+08:00"
created_at: "2022-11-10T20:38:27+08:00"
updated_at: "2026-01-07T18:10:45+08:00"
---
今天 push 不了项目估计又是网络的问题决定还是给git和ssh配置一下代理不然太难受了。
配置记录如下:
1.使用socks5代理我这边的端口是1089
```shell
git config --global http.https://github.com.proxy socks5://127.0.0.1:1089
```
2.修改 ~/.ssh/config 文件
```shell
Host github.com
User git
ProxyCommand nc -v -x 127.0.0.1:1089 %h %p
```