Files
nexus/wiki/sources/git-push-connection-reset.md
2026-04-14 16:02:50 +08:00

32 lines
961 B
Markdown
Raw 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.
---
title: "Git Push 连接重置问题修复"
type: source
tags: [Git, GitHub, Proxy, SOCKS5]
date: 2026-04-14
source_file: raw/Technical/Git Push 连接重置问题修复.md
---
## Summary
- 核心主题解决国内访问GitHub时Git Push连接重置问题
- 问题域TCP连接层面被防火墙阻断
- 方法/机制配置Git代理 / 切换到SSH协议
- 结论/价值让Git流量走本地代理通道是根本解决方案
## Key Claims
- `Recv failure: Connection was reset`是TCP连接层面中断不是权限问题
- GFW检测到流量特征后发送TCP RST包阻断连接
- 为Git单独配置代理不影响其他命令
## Key Concepts
- [[Git代理配置]]为Git单独设置HTTP/SOCKS5代理
- [[SSH协议切换]]从HTTPS切换到SSH连接GitHub
## Key Entities
- [[GitHub]]:代码托管平台
## Connections
- [[Trae远程开发部署指南]] ← 开发协作 ← [[Git-Push-连接重置]]
## Contradictions
- 尚未发现