git 更改最近提交的作者信息

首先 当前工程的config文件需要更改

打开当前工程.git/config文件

尝试添加:

[user]
name = your_name
email = [email protected]

然后当前工程执行命令

命令:git commit --amend --reset-author

这会修改最近一次的提交

猜你喜欢

转载自www.cnblogs.com/vete-l/p/9010118.html