Change GitHub account name


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:

        email =
        name = accountname

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

        email =
        name = newaccountname

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


do not loose your history, change the account name

you can read here about it: