为了账号安全,请及时绑定邮箱和手机立即绑定

如何在同一客户端设置多个git账户?

如何在同一客户端设置多个git账户?

ITMISS 2018-07-16 13:06:00
RT,我想在我本地设置多个git账户,同时应对gitlab/github的工作。我按照搜索的教程来做了,可以push到github远端了,虽然名字跟我设置的对的上,但是github commit log上的名字却无法对应上我的账户,也就是名字上没有链接。请问是我哪里姿势不对?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全局设置,然后本地设置,名字跟github账户的名字对的上,但是push上去之后就是不能识别。顺带ssh keys也设置了。PS:我校验了应该是可以连接到GitHub的。▶ ssh -T git@github.com Hi RyanLiu0235! You've successfully authenticated, but GitHub does not provide shell access.
查看完整描述

目前暂无任何回答

  • 0 回答
  • 0 关注
  • 300 浏览

添加回答

举报

0/150
提交
取消
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号