Github has seen many collisions with generic and fake email addresses and have changed how they are registered.
Do two things and an optional third.
1. On the email settings page check the box:
Keep my email address private.
We will use [email protected] when performing git operations and sending outgoing email on your behalf.
2. The "Keeping your email address private" help page says to use "[email protected]".
Change git config to [email protected]:
git config --global user.email "[email protected]"
3. Optionally rewrite history on your repos to change the author -- but heed the warnings!
This help page says to contact Github to backfill previous contributions, but this only applies to verifiable addresses.
I asked Github support. They said:
As you've noticed, we've made some recent changes to how emails are used for commit blame and counting contributions. We were seeing a large number of collisions with generic and "fake" emails, which were confusing users. Unfortunately that means that commits made with an address like "server.fake" will no longer be linked up to your GitHub account.
The backfilling process only works for email addresses that can be accepted by our system and used for commit blame, so unfortunately that wouldn't help in your situation.
If you want to link up the old commits, it will require rewriting the history to use your [email protected]
address. We have a guide on that, though you may want to give it some consideration if there are other users using your repositories, as history rewriting can be a fairly disruptive activity.
.patch
. (2) I tried using<username>@users.noreply.github.com
, but this prevents your contributions from being recorded on your profile page. It seems like you need a "real" email address. However, the address doesn't have to be verified by clicking the link that GitHub emails, so perhaps a "real-sounding" email address is good enough. – Georgeannageorgeanne