git修改已提交commit的Author信息

在 git 中可以通过 git commit --amend 来修改最近一个已提交 commit 的 Author 信息,使用如下:

git commit --amend --author “xxx <[email protected]>”

如果是配置问题导致的 author 信息出错,还需要修改相关配置,以避免 author 信息再次出错。配置方法可参考 git学习之git config 。

猜你喜欢

转载自blog.csdn.net/choumin/article/details/113584118