本地git多用户ssh配置
仅作备份,不做解释
1. ~/.ssh/config
Host jeadyx.gitee.com
HostName gitee.com
PreferredAuthentications publickey
IdentityFile ~/.ssh/id_rsa_jeadyx
Host jeady5.gitee.com
HostName gitee.com
PreferredAuthentications publickey
IdentityFile ~/.ssh/id_rsa_jeady5
2. 修改url
将
git add remote origin git@gitee.com:jeady5/test.git
改为
git add remote origin git@jeady5.gitee.com:jeady5/test.git