Article version: Enterprise Server 2.16

Changing your GitHub username

You can change your GitHub Enterprise username at any time.

In this article

About username changes

After changing your username, your old username becomes available for anyone else to claim. Most references to your repositories under the old username automatically change to the new username. However, some links to your profile won't automatically redirect.

GitHub Enterprise cannot set up redirects for:

Repository references

After you change your username, GitHub Enterprise will automatically redirect references to your repositories.

If the new owner of your old username creates a repository with the same name as your repository, that will override the redirect entry and your redirect will stop working. Because of this possibility, we recommend you update all existing remote repository URLs after changing your username. For more information, see "Changing a remote's URL."

After changing your username, links to your previous profile page, such as https://[hostname]/previoususername, will return a 404 error. We recommend updating any links to your GitHub Enterprise account from elsewhere.

Your Git commits

If your Git commits are associated with another email address you've added to your GitHub account, they'll continue to be attributed to you and appear in your contributions graph after you've changed your username. For more information on setting your email address, see "Setting your commit email address."

Changing your username

  1. In the upper-right corner of any page, click your profile photo, then click Settings.

    Settings icon in the user bar

  2. In the left sidebar, click Account.

    Account settings menu option

  3. In the "Change username" section, click Change username.

    Change Username button

Further reading

Ask a human

Can't find what you're looking for?

Contact us