5 ms·
In this case I think you could use a .mailmap [1] in the repo to associate the old email addresses with current, verified addresses. [1] https://git-scm.com/do
by arraypad 5y ago
In this case I think you could use a .mailmap [1] in the repo to associate the old email addresses with current, verified addresses.
[1] https://git-scm.com/docs/gitmailmap https://git-scm.com/docs/gitmailmap
- nynyny7 5y agoInteresting. One never stops learning new git features... However, while this works for git (i.e., maps old address to new address in "git log" for example), GitHub does not seem to honor this file.
- Kwpolska 5y agoGitHub bases the association of commits to user accounts on the list of e-mail addresses configured in the user’s profile: https://github.com/settings/emails https://github.com/settings/emails
- trulyme 5y agoWell, yes, but maybe they should? It doesn't seem like a huge feature...
- leni536 5y agoNow which commit's mailmap file should be used for the association? Whatever is on the "default" branch currently?
- Aeolun 5y agoWhatever is in the branch you are looking at? Seems fairly straightforward.
- remram 5y agoViewing a specific commit or viewing the repositories' statistics ("insights" tab) both have no attached branch.
- Cthulhu_ 5y agoin Github or in Git itself? While possible, I don't believe there's many floating commits around. The other issue of course is that at this point in time, there would not be a .mailmap. Of course, github can then fall back to a .mailmap file in the latest commit of the main branch.
- remram 5y agoCommits are not usually floating but are very commonly in more than one branch.
- angus-g 5y agoWhat about if somebody clones a repo, then adds a .mailmap pointing all the addresses in the history to their own?