Change GitHub account name

Hi,

I started out with an alias as my GitHub account name. Now I want something more resembling my real name.
Apparently changing your account name can be tricky, and I am not sure I understand it completely. Does it make a difference when you use the email-address GitHub assigned to you instead of the email-address you signed up with?

Git config file:

[user]
        email = 12345678+accountname@users.noreply.github.com
        name = accountname

If I change my accountname on GitHub, should I then just change the config file on my computer to the following:

[user]
        email = 12345678+newaccountname@users.noreply.github.com
        name = newaccountname

The alternative is to create a new GitHub account and move my repositories, some information will be lost like my commits.

Cheers,

do not loose your history, change the account name

you can read here about it:

3 Likes