美文网首页
切换Git账号

切换Git账号

作者: Agneszbaby | 来源:发表于2019-05-12 13:21 被阅读0次

    切换Git账户

    查看用户名

      git config user.name
    

    查看用户名

      git config user.email
    

    修改用户名和邮箱的命令

      git config --global user.name "userName" 
      git config --global user.email "userEmail" 
    

    有一点要注意, user.name/email后面千万记得加空格,否则你就是提交了,Git也不会提醒你配置出错

    相关文章

      网友评论

          本文标题:切换Git账号

          本文链接:https://www.haomeiwen.com/subject/nblcaqtx.html