在.ssh文件夹下创建一个config文件,内容:
配置github.com
Host github.com
HostName github.com
IdentityFile C:\Users\i042416\.ssh\id_rsa
PreferredAuthentications publickey
User i042416
配置公司github
Host github.diablo.corp
HostName github.diablo.corp
IdentityFile C:\Users\i042416\.ssh\id_sap_rsa
PreferredAuthentications publickey
User i042416