|
| 1 | +--- |
| 2 | +title: Username changes |
| 3 | +intro: You can change the username for your {% data variables.product.github %} account {% ifversion ghes %} if your instance uses built-in authentication{% endif %}. |
| 4 | +redirect_from: |
| 5 | + - /articles/how-to-change-your-username |
| 6 | + - /articles/changing-your-github-user-name |
| 7 | + - /articles/renaming-a-user |
| 8 | + - /articles/what-happens-when-i-change-my-username |
| 9 | + - /articles/changing-your-github-username |
| 10 | + - /github/setting-up-and-managing-your-github-user-account/changing-your-github-username |
| 11 | + - /github/setting-up-and-managing-your-github-user-account/managing-user-account-settings/changing-your-github-username |
| 12 | + - /account-and-profile/setting-up-and-managing-your-github-user-account/managing-user-account-settings/changing-your-github-username |
| 13 | + - /account-and-profile/setting-up-and-managing-your-personal-account-on-github/managing-personal-account-settings/changing-your-github-username |
| 14 | + - /account-and-profile/setting-up-and-managing-your-personal-account-on-github/managing-user-account-settings/changing-your-github-username |
| 15 | + - /account-and-profile/concepts/changing-your-github-username |
| 16 | +versions: |
| 17 | + fpt: '*' |
| 18 | + ghes: '*' |
| 19 | + ghec: '*' |
| 20 | +topics: |
| 21 | + - Accounts |
| 22 | + - Usernames |
| 23 | +shortTitle: Username changes |
| 24 | +contentType: concepts |
| 25 | +--- |
| 26 | + |
| 27 | +## About username changes |
| 28 | + |
| 29 | +You can change your username to another username that is not currently in use.{% ifversion fpt or ghec %} 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. |
| 30 | + |
| 31 | +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. |
| 32 | + |
| 33 | +## Username trademarks |
| 34 | + |
| 35 | +If you hold a trademark for the username, you can find more information about making a trademark complaint on our [Trademark Policy](/free-pro-team@latest/site-policy/content-removal-policies/github-trademark-policy) page. |
| 36 | + |
| 37 | +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.{% endif %} |
| 38 | + |
| 39 | +## Repository references |
| 40 | + |
| 41 | +After you change your username, {% data variables.product.github %} will automatically redirect references to your repositories. |
| 42 | + |
| 43 | +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 [AUTOTITLE](/get-started/git-basics/managing-remote-repositories). |
| 44 | + |
| 45 | +## Links to your previous profile page |
| 46 | + |
| 47 | +After changing your username, links to your previous profile page, such as `https://{% data variables.product.product_url %}/previoususername`, will return a 404 error. We recommend updating any links to your profile from elsewhere{% ifversion fpt or ghec %}, such as your LinkedIn or Twitter profile{% endif %}. |
| 48 | + |
| 49 | +## Accounts logged in on {% data variables.product.prodname_mobile %} |
| 50 | + |
| 51 | +Accounts logged in on the {% data variables.product.prodname_mobile %} app may continue to display your original username until you log out. To ensure your updated username is displayed, we recommend you sign out and back in to your account on each mobile device. |
| 52 | + |
| 53 | +## Your Git commits |
| 54 | + |
| 55 | +If your Git commits are associated with another email address you've added to your {% data variables.product.github %} account, they'll continue to be attributed to you and appear in your contributions graph after you've changed your username. However, some commits using {% data variables.product.github %}-provided email addresses may be affected. For details, see [AUTOTITLE](/account-and-profile/reference/username-reference#git-commits-after-a-username-change). |
| 56 | + |
| 57 | +## Your gists |
| 58 | + |
| 59 | +After changing your username, the URLs to any public or secret gists will also change and previous links to these will return a 404 error. We recommend updating the links to these gists anywhere you may have shared them. |
| 60 | + |
| 61 | +## CODEOWNERS files |
| 62 | + |
| 63 | +After changing your username, CODEOWNERS files that include your old username will need to be manually updated. When you view the CODEOWNERS files on {% data variables.product.github %}, an error message is displayed if the file contains any unknown users, or users without write access. We recommend updating all relevant CODEOWNERS files with your new username. |
| 64 | + |
| 65 | +## Next steps |
| 66 | + |
| 67 | +To change your username, see [AUTOTITLE](/account-and-profile/how-tos/setting-up-and-managing-your-personal-account-on-github/managing-your-personal-account/changing-your-username). |
0 commit comments