I changed the author name of some past commits (commits I made) using rebase starting at the root.
I used git rebase -i -p --root
, and then marked the commits I wanted to change with "edit".
Then I used git commit --amend --author="Username <email>" --no-edit
and then git rebase --continue
for each commit.
It worked perfectly for the ones I marked edit, however, I am not the only one working in the repository. All the commits that I did not mark edit (ones that were not mine) now say that someone else authored but I committed. I reset the repository to before the rebase, but would like to know if there's a way to rebase without making it seeming like I committed everything? There must be a way to leave some commits alone during a rebase, but I can't find anything online.