RT,我想在我本地設(shè)置多個(gè)git賬戶,同時(shí)應(yīng)對(duì)gitlab/github的工作。我按照搜索的教程來做了,可以push到github遠(yuǎn)端了,雖然名字跟我設(shè)置的對(duì)的上,但是github commit log上的名字卻無法對(duì)應(yīng)上我的賬戶,也就是名字上沒有鏈接。請(qǐng)問是我哪里姿勢(shì)不對(duì)?Host github.com
HostName github.com User gitname
PreferredAuthentications publickey
IdentityFile /Users/xx/.ssh/id_rsa_github
Host gitlab.com
HostName gitlab User git
PreferredAuthentications publickey
IdentityFile /Users/xx/.ssh/id_rsa我有首先unset全局設(shè)置,然后本地設(shè)置,名字跟github賬戶的名字對(duì)的上,但是push上去之后就是不能識(shí)別。順帶ssh keys也設(shè)置了。PS:我校驗(yàn)了應(yīng)該是可以連接到GitHub的。? ssh -T git@github.com
Hi RyanLiu0235! You've successfully authenticated, but GitHub does not provide shell access.
同一客戶端設(shè)置多個(gè)git賬戶
烙印99
2018-07-18 14:09:23