How to change author on git commit without re
This question already has an answer here:
The posts your reference mention rebase -i
, but also git filter-branch
.
You should try the git filter_branch
approach, which doesn't re-apply each commits, and doesn't have to resolve merge conflicts.
Like the rebase, that will change your history, though, and you will have to push --force
the end result.
I think you will help this parameter --author
. So if yo have merge commit already just whrite:
git commit --amend --author="Foo Bar <foo@example.com>"
链接地址: http://www.djcxy.com/p/28490.html
上一篇: 在每次提交中更改邮件地址