Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to say this is me in github

Tags:

git

github

I made a mistake while setting up my GitHub information, so when I pushed to a repository X the name that appeared is not my name. How can I fix it and say that was me? is there any way to do that?

In BitBucket there is an option in repo admin page called "Username aliases".

Note: I'm an admin in the repository X.

like image 706
MhdAljuboori Avatar asked Oct 09 '22 01:10

MhdAljuboori


1 Answers

In general, the way to indicate that you have some commits with the wrong email address and wish to correct that for people looking at the history in the future is to use the .mailmap file. This is documented in the git shortlog manual page. In order to use it, each line should start with your correct name and address, and then continue with any name/address combinations that appear in the history that you wish to map to that correct name and address. For example:

Mhd Aljobory <[email protected]> Wrong Name <example@laptop.(none)>

I don't know if GitHub supports translating via mailmap or not, but this is the standard way that various Git tools use for solving this problem.

like image 136
Brian Campbell Avatar answered Oct 12 '22 10:10

Brian Campbell