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 alsogit filter-branch.You should try the
git filter_branchapproach, 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 --forcethe end result.