ITeye博客

git提交的时候如果遇到does not match your user account

hellojava · 2016-11-30 12:15 · 互联网 · Markdown

git提交的时候如果遇到does not match your user account


 

除了使用下面的命令重新设置账号以外

git config --global user.name "Your Name"

git config --global user.email you@example.com

还需要

git commit --amend --reset-author

否则是不会有效果的

 

当然,如果能在Gerrit里面进行配置,配置 'Forge Committer' 和 'Forge Author' 访问权限也是能够解决的。

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。