5.0 KiB
title, intro, redirect_from, versions, topics, shortTitle
| title | intro | redirect_from | versions | topics | shortTitle | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Changing your GitHub username | You can change your {% data variables.product.product_name %} username at any time. |
|
|
|
Change your username |
About username changes
You can change your username to another username that is not currently in use.{% ifversion fpt %} If the username you want is not available, consider other names or unique variations. Using a number, hyphen, or an alternative spelling might help you find a similar username that's still available.
If you hold a trademark for the username, you can find more information about making a trademark complaint on our Trademark Policy page.
If you do not hold a trademark for the name, you can choose another username or keep your current username. {% data variables.contact.github_support %} cannot release the unavailable username for you. For more information, see "Changing your username."{% endif %}
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.
{% data variables.product.product_name %} cannot set up redirects for:
Repository references
After you change your username, {% data variables.product.product_name %} will automatically redirect references to your repositories.
- Web links to your existing repositories will continue to work. This can take a few minutes to complete after you make the change.
- Command line pushes from your local repository clones to the old remote tracking URLs will continue to work.
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 "Managing remote repositories."
Links to your previous profile page
After changing your username, links to your previous profile page, such as https://{% data variables.command_line.backticks %}/previoususername, will return a 404 error. We recommend updating any links to your {% data variables.product.product_name %} account from elsewhere{% ifversion fpt %}, such as your LinkedIn or Twitter profile{% endif %}.
Your Git commits
{% ifversion fpt %}Git commits that were associated with your {% data variables.product.product_name %}-provided noreply email address won't be attributed to your new username and won't appear in your contributions graph.{% endif %} If your Git commits are associated with another email address you've added to your GitHub account, {% ifversion fpt %}including the ID-based {% data variables.product.product_name %}-provided noreply email address, {% endif %}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
{% data reusables.user_settings.access_settings %}
{% data reusables.user_settings.account_settings %}
3. In the "Change username" section, click Change username.
{% ifversion fpt %}
4. Read the warnings about changing your username. If you still want to change your username, click I understand, let's change my username.
5. Type a new username.
6. If the username you've chosen is available, click Change my username. If the username you've chosen is unavailable, you can try a different username or one of the suggestions you see.
{% endif %}
Further reading
- "Why are my commits linked to the wrong user?"{% ifversion fpt %}
- "{% data variables.product.prodname_dotcom %} Username Policy"{% endif %}