😊杨鼎睿的笔记

Search

Search IconIcon to open search

github 上传 ssh-key 后仍须输入密码

Last updated Nov 23, 2022 Edit Source

# 摘要

.git/config 文件写明了通过 http 协议,没有走 ssh url = https://github.com/Name/project.git 改为 url = [email protected]:Name/project.git

只想走 ssh 协议。from: Git - git-config Documentation

1
git config --global url.ssh://[email protected]/.insteadOf https://github.com/

# 测试连通性