I am working on a project with git version control. It has many contributors. In the first few days of the project, many commits were made without an author. I read this post, and this one too. I have tried going through git rebase -i <Original commit SHA> but all of the commits I flag with an edit tag have merge conflicts to address! I looked into calling rerere to use the old fixes, but because rerere changes are cached and I had not originally set it to true in gitconfig, it's not an option here.
Short of going commit-by-commit and readdressing the merge conflicts, what can I do to change the authors for those early commits?
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With