新增wiki命令文件
This commit is contained in:
25
wiki/concepts/SSH协议切换.md
Normal file
25
wiki/concepts/SSH协议切换.md
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
title: "SSH协议切换"
|
||||
type: concept
|
||||
tags: [Git, SSH, GitHub]
|
||||
sources: [git-push-connection-reset]
|
||||
last_updated: 2026-04-14
|
||||
---
|
||||
|
||||
## Definition
|
||||
从HTTPS切换到SSH协议连接GitHub,绕过443端口限制。
|
||||
|
||||
## 操作步骤
|
||||
```bash
|
||||
# 查看当前远程地址
|
||||
git remote -v
|
||||
|
||||
# 修改为SSH地址
|
||||
git remote set-url origin git@github.com:username/repo.git
|
||||
```
|
||||
|
||||
## 前提
|
||||
已生成SSH Key并上传公钥到GitHub
|
||||
|
||||
## Connections
|
||||
- [[GitHub]] ← 解决方案 ← [[SSH协议切换]]
|
||||
Reference in New Issue
Block a user