GitHub currently (as of 2025-01-13) does support .mailmap files (here is the commit amending the .mailmap file), tested on Apache Calcite upstream repository after mistakenly committing with an invalid email address (here is the commit with the invalid email address).
After approximately 24 hours it has picked up the change and updated the commit count, so it works now.
This is how the commits are displayed in git log, notice the erroneous [email protected] in the bottom commit, which can't be added in my GitHub account because that address does not exist (it's "apache.org").
commit 60953ecd9c055e0e029de0d6034037cc7d68361a Author: Alessandro Solimando [email protected] Date: Sun Jan 12 21:31:23 2025
+0100
Add Alessandro Solimando to .mailmap file
commit 27d733e1753b8be7145ac7645d77e5c4901a29fc Author: Alessandro Solimando [email protected] Date: Sun Jan 12 19:46:54 2025
+0100
[CALCITE-6782] Upgrade Cassandra to 4.1.6 and Cassandra driver to 4.18.1
If you look in GitHub, you can see that 3 is now correctly linked to my GitHub account (see also the commit count), and it can't be anything else than the .mailmap kicking in as it's not and could not be linked to my account as it's a non-existing email address (you can try to send an email there and see that it can't be delivered).