Elektrine lite

← Feed

@nerdnz@cloudisland.nz

Post #662475

2025-10-30 04:14 UTC

If you've changed your name, and you have old git commits that still show under your old name, you can fix it by adding a `.mailmap` file in the root of a git repository This file lets you say what name and email address should appear any time git sees a particular email address for a commit author https://git-scm.com/docs/gitmailmap

Replies (4)

  • @nerdnz@cloudisland.nz 2025-10-30 04:16

    There are other ways to fix old names against old commits, but they involve recreating the entire git history since then. That's not always feasible

    Open ##2704249

  • @megahbite@cloudisland.nz 2025-10-30 08:16

    @nerdnz@cloudisland.nz @caitelatte@cloudisland.nz over a decade ago now I tried to get commit metadata changed to be less tied to a name. Sadly it was not received well.

    Open ##2704256

  • @benbe@social.chaotikum.org 2025-10-30 08:17

    @nerdnz@cloudisland.nz Beware that this may doxx a deadname in a standardized, machine-readable format.

    Open ##2704259

  • @Gjoel@mstdn.dk 2025-10-30 14:30

    @nerdnz@cloudisland.nz Honestly I am more likely to want to _not_ have old commits showing up without having to change my name. :)

    Open ##2704263