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

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



 

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

git config --global user.name "Your Name"
git config --global user.email [email protected]
还需要

git commit --amend --reset-author

否则是不会有效果的

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

猜你喜欢

转载自hellojava.iteye.com/blog/2342004