git配置ssh拉代码
- 生成证书
1
2
3
4#进入指定路径文件夹
cd ~/.ssh
# 提示输入文件名, 如id_rsa_stupidt义, 密码不输入
ssh-keygen -t rsa -C "你的邮箱" - 配置仓库匹配
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20#进入指定路径文件夹
cd ~/.ssh
touch config
# 文件内容如下
Host github.com
User damon
Hostname github.com
IdentityFile ~/.ssh/id_rsa_yami
Host github.com
User 625
Hostname github.com
IdentityFile ~/.ssh/id_rsa_stupidt
Host gitee.com
User 625
Hostname gitee.com
IdentityFile ~/.ssh/id_rsa
git配置ssh拉代码
https://kanchai.club/2022/12/10/git配置ssh拉代码/