I recently replaced the author, committer and his email in all my local commits using the following command:
git filter-branch -f --env-filter ' if [ "$GIT_COMMITTER_NAME" = "oldname" ]; then GIT_COMMITTER_NAME="newname"; GIT_COMMITTER_EMAIL="newaddr"; GIT_AUTHOR_NAME="newname"; GIT_AUTHOR_EMAIL="newaddr"; fi if [ "$GIT_AUTHOR_NAME" = "oldname" ]; then GIT_COMMITTER_NAME="newname"; GIT_COMMITTER_EMAIL="newaddr"; GIT_AUTHOR_NAME="newname"; GIT_AUTHOR_EMAIL="newaddr"; fi ' -- --all
Updates are immediately detected locally (for example, in my SourceTree environment). However, after forcibly pushing the modified repository on GitHub ...
git push -f origin master
... two separate elements stubbornly refuse to update the committer and the author: the Gemfile.lock file and the submission directory.
Also note that:
... gives a bunch of results, which means that the old name is still hidden in many files of the repository - including files that are updated both on GitHub and locally.
My question is: how can I change the committer / author of two stubborn files on GitHub?
source share