Hacker News new | ask | show | jobs
by andrewfromx 454 days ago
I like it. A problem I had right away is some people commit using two different emails. Like one from home computer and one from work computer. Would be nice to be able to define them as the same thing.
4 comments

You might be able to do that with built-in git functionality called gitmailmap. It is basically a file where you can map multiple names and emails to the same one.
I set this up and tested with `git log` and then found that PyCharm's git client apparently doesn't support this. Disappointing.
It's great when you read further down the comments and come across a gem like this. I had no idea this was possible; thanks.
Like other commenters have said, mailmap does this and git who will respect your mailmap file.
Like the other comment, this is "I came looking for copper but found gold" moment for me. Thanks!
That's what the mailmap is for.

  git help mailmap