Hello, and welcome to the forums!
It seems that you turned on these options in GitHub:
but when you configured the email address for git to use locally, you probably used the email address associated with GitHub rather than the one they generated for you to use for privacy. You should use the email address from the spot I blurred out in the previous screenshot. It will be personalized for you in the GitHub settings under Emails.
You can reconfigure it using:
git config --global user.email "private_email_from_github@here.com"
That will solve the issues for new git repositories you create locally from now on.
However, it wonât retroactively fix the ones you already created.
- If youâve only created a test repository, this wonât be a problem because you can start over.
- If you have a long history of git commits that you want to keep, then the solutions to change the author information of previous commits can be quite involved and dangerous. Hereâs an article that discusses some options to do that if you want: Editing the Author of Past Commits
Alternatively, you could uncheck the âBlock command line pushes that expose my emailâ in GitHubâs settings.