Force push was the answer so, as indicated by @MohammadAbuShady
Changing github commit author info
-
13-10-2022 - |
Domanda
GitHub made changes recently to stop using some generic domains that meant that the dummy email address I was using for commits (to keep my actual email address private) was no longer correct to have contributions counted.
The help at GitHub told me to use the this https://help.github.com/articles/changing-author-info on lmy local clone to change the author info for previous commits, which I duly did in the Git Bash... which went through the rewrite, and informed me that `Ref 'refs/heads/master' was rewritten.
What now? Do I commit/push? There are no changes showing in the repository and the Github repo hasnt changed....
Soluzione
Altri suggerimenti
Create a new branch and execute this command line (take care with this command, read more here: https://git-scm.com/docs/git-filter-branch):
git filter-branch -f --env-filter "GIT_AUTHOR_NAME='your name'; GIT_AUTHOR_EMAIL='your_email@mail.com'; GIT_COMMITTER_NAME='your name'; GIT_COMMITTER_EMAIL='your_email@mail.com';" HEAD
After that, publish the new branch and if you need, change the new branch as the main branch (if you are lonely in the project).