For anyone facing this issue please first check if you have a typo or wrong or a different email address configured in your local git (step 1 below). If so, then this might solve the issue as it did for my repo once upon a time.
- To View the Current Name and Email:
git config --global user.name
git config --global user.email
- To Update Correctly:
git config --global user.name "Your Correct Name Here"
git config --global user.email "Your Correct Email Here"
- Also repeat 1. and 2. without the --global option.
- Now You Must Reset the Author
git commit --amend --reset-author
- Finally can do Forced Push
git push -f
- Verify on GitHub
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.