To reset commit author its required:
- to update default user name/email. (
--global
could added)
$ git config user.name example user
$ git config user.email example@email.com
- set checkpoint to keep orignal commit tree.
$ git branch --no-track checkpoint master
- to run fixer command, what would update author, while creating new commit tree.
$ COMMIT_ID="<COMMIT_ID>"
$ git rebase --onto "${COMMIT_ID}" --exec "git commit --amend --reset-author --no-edit" "${COMMIT_ID}"
- review that all good and update remote, plus drop checkoiunt:
$ git push origin master -f
$ git branch -D checkpoint