RT,我想在我本地設(shè)置多個(gè)git賬戶,同時(shí)應(yīng)對(duì)gitlab/github的工作。我按照搜索的教程來(lái)做了,可以push到github遠(yuǎn)端了,雖然名字跟我設(shè)置的對(duì)的上,但是githubcommitlog上的名字卻無(wú)法對(duì)應(yīng)上我的賬戶,也就是名字上沒(méi)有鏈接。請(qǐng)問(wèn)是我哪里姿勢(shì)不對(duì)?Hostgithub.comHostNamegithub.comUsergitnamePreferredAuthenticationspublickeyIdentityFile/Users/xx/.ssh/id_rsa_githubHostgitlab.comHostNamegitlabUsergitPreferredAuthenticationspublickeyIdentityFile/Users/xx/.ssh/id_rsa我有首先unset全局設(shè)置,然后本地設(shè)置,名字跟github賬戶的名字對(duì)的上,但是push上去之后就是不能識(shí)別。順帶sshkeys也設(shè)置了。PS:我校驗(yàn)了應(yīng)該是可以連接到GitHub的。?ssh-Tgit@github.comHiRyanLiu0235!You'vesuccessfullyauthenticated,butGitHubdoesnotprovideshellaccess.
同一客戶端設(shè)置多個(gè)git賬戶
繁星coding
2019-05-13 07:55:36