git commit 修改author信息

一、修改一条提交:

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

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





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



posted @ 2023-08-19 09:48  悟透  阅读(666)  评论(0)    收藏  举报