As a wise man once said:
"With great power comes great responsibility" - Benjamin Parker character from the Spider-man comics.
This should not ...
For further actions, you may consider blocking this person and/or reporting abuse
Great tip! As an alternative, if you're uncomfortable rewriting all of a project's history using
git-filter-branch
, Git has a feature known as mailmaps which allow you to canonicalize username and e-mail addresses.Far better solution!
Thanks for this! mailmap doesn't come up in google searches as much as one might expect, it's a perfect solution for me
Here's an example of how to fix the email address of commits.
Don't rewrite all commit authors, only the commits with the incorrect email address.
Helpful post. Thanks for sharing Christian.
We rebase at work which means we need to force a push. However, you can use a slightly safer force command.
Having said that, I renamed that alias a while back to
pf
. More aliases here.My Git Aliases
Nick Taylor
That sounds awesome! I'll give it a try!
Thanks! Very helpful. Thanks for sharing. I will definitely use that whenever I encounter a problem like that.
Thank you for this post. I had the exact same situation. In my case, most of the commits were under my work email.
Sweet and concise post, thanks a lot. This is a problem I have run into way more than I would like to admit 🙈
Nice helpful post 😄