I have created a personal repository (for practice and fun) since several months ago and I continue to develop it so far.
Recently I checked the commit history and found there were several commits made by using a wrong account, which is offered by my company and should be used for work. I have already tried the command below :
git filter-branch --commit-filter ' if [ "$GIT_AUTHOR_EMAIL" = "email@example.com" ]; then GIT_AUTHOR_NAME="another_name"; GIT_AUTHOR_EMAIL="firstname.lastname@example.org"; git commit-tree "$@"; else git commit-tree "$@"; fi' HEAD
After this command I thought it worked. I checked
git log and the author has already changed.
But what confused me is that I can still see another name in commit history (shown as img below).
Could someone tell me what I should do to modify those commit records definitely ?