git commit 修改author信息

悟透 / 2023-08-19 / 原文

一、修改一条提交:

git commit --amend --author="作者 <邮箱@xxxx.com>" --no-edit
git push --force

-f, --force 强制提交,否则服务端认为你是有误的修改





参考、来源:
https://blog.csdn.net/shi_tianzhu/article/details/119963296