RT,我想在我本地設(shè)置多個git賬戶,同時應(yīng)對gitlab/github的工作。我按照搜索的教程來做了,可以push到github遠端了,雖然名字跟我設(shè)置的對的上,但是github commit log上的名字卻無法對應(yīng)上我的賬戶,也就是名字上沒有鏈接。請問是我哪里姿勢不對?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賬戶的名字對的上,但是push上去之后就是不能識別。順帶ssh keys也設(shè)置了。PS:我校驗了應(yīng)該是可以連接到GitHub的。? ssh -T git@github.com
Hi RyanLiu0235! You've successfully authenticated, but GitHub does not provide shell access.
如何在同一客戶端設(shè)置多個git賬戶?
ITMISS
2018-07-16 13:06:00