Changing your username
The following list contains limitations and considerations when changing your GitHub username. For the GitHub username policy, see GitHub のユーザー名ポリシー.
Limitations of username changes
Members of an マネージド ユーザーを含む Enterprise cannot change usernames. Your enterprise's IdP administrator controls your GitHub username. For more information, see Enterprise Managed Users について.
GitHub Marketplace に記載されているアクションが含まれるパブリック リポジトリか、アカウント名の変更前の週に GitHub Actions が 100 回以上複製されたか、100 回以上使用されているパブリック リポジトリがアカウント名前空間に含まれる場合、GitHub では、アカウントの名前変更時に、古い所有者名とリポジトリ名の組み合わせ (OLD-OWNER/REPOSITORY-NAME
) が完全に廃止となります。 If you try to create a repository using a retired owner name and repository name combination, you will see the error: "The repository <REPOSITORY_NAME>
has been retired and cannot be reused."
GitHub Packages レジストリに格納されているパッケージまたはコンテナー イメージがアカウントの名前空間に含まれている場合、該当するパッケージとコンテナー イメージは GitHub によって新しい名前空間に転送されます。 アカウントの名前を変更すると、これらのパッケージに依存しているプロジェクトが中断される可能性があります。 ダウンロード数が 5,000 を超えるパブリックのコンテナー イメージがその名前空間に含まれている場合、アカウントの名前を変更すると、これらのコンテナー イメージの以前のフルネーム (OLD-NAMESPACE/IMAGE-NAME
) は完全に廃止され、今後そのコンテナー イメージ名を再利用できなくなります。
Repository redirects after username change
After you change your username, 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.
Redirects for changed usernames
GitHub cannot set up redirects for:
Git commits after a username change
After a username change, verified commits signed using the previous GitHub-provided noreply
email address will lose their "Verified" status.
When verifying a signature, GitHub checks that the email address of the committer or tagger exactly matches one of the email addresses associated with the GPG key's identities. Additionally, GitHub confirms that the email address is verified and linked to the user's account. This ensures that the key belongs to you and that you created the commit or tag. Because the username of the noreply
email address changes, these commits can no longer be verified.
If you've been using a GitHub-provided private commit email address, whether or not your commit history will be retained after an account rename depends on the format of the email address. Git commits that are associated with your GitHub-provided noreply
email address won't be attributed to your new username and won't appear in your contributions graph, unless your noreply
email address is in the form of ID+USERNAME@users.noreply.github.com
. Older versions of the noreply
email address that do not contain a numeric ID will not be associated with your GitHub account after changing your username.