美文网首页
git提交报错does not match your user

git提交报错does not match your user

作者: 103style | 来源:发表于2019-08-27 16:48 被阅读0次

    git 提交报错 does not match your user account

    出现这个错误的原因是:

    因为修改 gituser.nameuser.email 然后 commit 了代码,然后 push 的时候报错。

    所以我们修改 gituser.nameuser.email 为要求的值。

    git config --global user.name "Your Name"
    git config --global user.email "you@example.com"
    

    然后执行以下代码,更新 提交 commit 代码的 author

    git commit --amend --reset-author
    

    以上

    相关文章

      网友评论

          本文标题:git提交报错does not match your user

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