Как изменить никнейм на github

You can change the username for your account on GitHub.com.

About username changes

You can change your username to another username that is not currently in use. 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. GitHub Support cannot release the unavailable username for you. For more information, see «Changing your username.»

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 cannot set up redirects for:

  • @mentions using your old username
  • Links to gists that include your old username

If you’re a member of an enterprise with managed users, you cannot make changes to your username. For more information, see «Types of GitHub accounts.»

If the account namespace includes any public repositories that contain an action listed on GitHub Marketplace, or that had more than 100 clones or more than 100 uses of GitHub Actions in the week prior to you renaming your account, GitHub permanently retires the old owner name and repository name combination (OLD-OWNER/REPOSITORY-NAME) when you rename your account. 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.»

If the account namespace includes any packages or container images stored in a GitHub Packages registry, GitHub transfers the packages and container images to the new namespace. By renaming your account, you may break projects that depend on these packages. If the namespace includes any container images that are public and have more than 5,000 downloads, the full former name of these container images (OLD-NAMESPACE/IMAGE-NAME) is permanently retired when you rename the account to ensure the container image name cannot be reused in the future.

Repository references

After you change your username, GitHub 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://github.com/previoususername, will return a 404 error. We recommend updating any links to your account on GitHub.com from elsewhere, such as your LinkedIn or Twitter profile.

Your Git commits

Git commits that were associated with your GitHub-provided noreply email address won’t be attributed to your new username and won’t appear in your contributions graph. If your Git commits are associated with another email address you’ve added to your GitHub account, including the ID-based GitHub-provided noreply email address, 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.»

Your gists

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.

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.

  3. In the «Change username» section, click Change username.
    Change Username button

  4. Read the warnings about changing your username. If you still want to change your username, click I understand, let’s change my username.
    Change Username warning button

  5. Type a new username.
    New username field

  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.
    Change Username warning button

Further reading

  • «Why are my commits linked to the wrong user?»
  • «GitHub Username Policy»

Note: Members of an enterprise with managed users cannot change usernames. Your enterprise’s IdP administrator controls your username for GitHub Enterprise Cloud. For more information, see «About Enterprise Managed Users.»

About username changes

You can change your username to another username that is not currently in use. 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. GitHub Support cannot release the unavailable username for you. For more information, see «Changing your username.»

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 Cloud cannot set up redirects for:

  • @mentions using your old username
  • Links to gists that include your old username

If you’re a member of an enterprise with managed users, you cannot make changes to your username. For more information, see «Types of GitHub accounts.»

If the account namespace includes any public repositories that contain an action listed on GitHub Marketplace, or that had more than 100 clones or more than 100 uses of GitHub Actions in the week prior to you renaming your account, GitHub permanently retires the old owner name and repository name combination (OLD-OWNER/REPOSITORY-NAME) when you rename your account. 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.»

If the account namespace includes any packages or container images stored in a GitHub Packages registry, GitHub transfers the packages and container images to the new namespace. By renaming your account, you may break projects that depend on these packages. If the namespace includes any container images that are public and have more than 5,000 downloads, the full former name of these container images (OLD-NAMESPACE/IMAGE-NAME) is permanently retired when you rename the account to ensure the container image name cannot be reused in the future.

Repository references

After you change your username, GitHub Enterprise Cloud 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://github.com/previoususername, will return a 404 error. We recommend updating any links to your account on GitHub.com from elsewhere, such as your LinkedIn or Twitter profile.

Your Git commits

Git commits that were associated with your GitHub Enterprise Cloud-provided noreply email address won’t be attributed to your new username and won’t appear in your contributions graph. If your Git commits are associated with another email address you’ve added to your GitHub account, including the ID-based GitHub Enterprise Cloud-provided noreply email address, 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.»

Your gists

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.

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.

  3. In the «Change username» section, click Change username.
    Change Username button

  4. Read the warnings about changing your username. If you still want to change your username, click I understand, let’s change my username.
    Change Username warning button

  5. Type a new username.
    New username field

  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.
    Change Username warning button

Further reading

  • «Why are my commits linked to the wrong user?»
  • «GitHub Username Policy»

GitHub Logo

Your Github login username could be changed to another username that is not in use. You might have to consider some unique usernames if the username you want is not available. You can use the different signs like hyphens, numbers, or alternative spellings to get a similar username that is still available.

Your old GitHub login username can be claimed by anyone after you have changed your username. Except for some links to your profile that wouldn’t redirect automatically, most of the other references to your repositories that were under the old username are changed automatically to the new username.

Redirects cannot be set up for:

  • @mentions that use your old username
  • The links to gits that include your old username

Steps To Change Your Github Login Username

Change username GitHub

  1. First, click your profile photo, then click Settings.
  2. In the left sidebar, click Account.
  3. Under the «Change username» section, click on Change username.
  4. Make sure that you read the warnings about changing your username and then click I understand, let’s change my username.
  5. Type a new username.
  6. Make sure that the username that you have chosen is available and then click Change my username.

Where To Make Changes

Making changes GitHub

  1. Go to the GitHub account settings and change the username.
  2. If you are using GitHub Pages, you could just change the name of your “username.github.io” repository
  3. Other services that point to your “username.github.io” repository address should now be updated.
  4. You might want to sign in and reconnect your repositories when using Netlify.
  5. You can sign in to Travis CI and other integrations as it will update your username there.
  6. Make sure that your local files and repository links are updated and the changes to GitHub are pushed back.
  7. With your updated GitHub link redeploy any websites that you may have.
  8. You can then fix any links around the web to your profile, Gists, or your repositories.

Local File Updates

We have for you some suggestions for strings, which you can use to search and replace your username.

  • github.com/username ( you get the references to your GitHub page in READMEs or in website copy)
  • username.github.io ( you will get links to your GitHub Page)
  • git@github.com:username ( you get Git config remote ssh URLs)
  • travis-ci.com/username (Travis badges in READMEs)
  • shields.io/github/…/username ( the shield badges would be in READMEs, types include stars, tags, contributors, and more)

You can use this command for each string after you identify where the above strings are located:

grep -rnw -e ‘foobar’

It will search all files for strings matching the whole (w) pattern (e) recursively (r) provided and prefix results with the line numbers (n) so you can find them easily.

GitHub Logo

Your Github login username could be changed to another username that is not in use. You might have to consider some unique usernames if the username you want is not available. You can use the different signs like hyphens, numbers, or alternative spellings to get a similar username that is still available.

Your old GitHub login username can be claimed by anyone after you have changed your username. Except for some links to your profile that wouldn’t redirect automatically, most of the other references to your repositories that were under the old username are changed automatically to the new username.

Redirects cannot be set up for:

  • @mentions that use your old username
  • The links to gits that include your old username

Steps To Change Your Github Login Username

Change username GitHub

  1. First, click your profile photo, then click Settings.
  2. In the left sidebar, click Account.
  3. Under the «Change username» section, click on Change username.
  4. Make sure that you read the warnings about changing your username and then click I understand, let’s change my username.
  5. Type a new username.
  6. Make sure that the username that you have chosen is available and then click Change my username.

Where To Make Changes

Making changes GitHub

  1. Go to the GitHub account settings and change the username.
  2. If you are using GitHub Pages, you could just change the name of your “username.github.io” repository
  3. Other services that point to your “username.github.io” repository address should now be updated.
  4. You might want to sign in and reconnect your repositories when using Netlify.
  5. You can sign in to Travis CI and other integrations as it will update your username there.
  6. Make sure that your local files and repository links are updated and the changes to GitHub are pushed back.
  7. With your updated GitHub link redeploy any websites that you may have.
  8. You can then fix any links around the web to your profile, Gists, or your repositories.

Local File Updates

We have for you some suggestions for strings, which you can use to search and replace your username.

  • github.com/username ( you get the references to your GitHub page in READMEs or in website copy)
  • username.github.io ( you will get links to your GitHub Page)
  • git@github.com:username ( you get Git config remote ssh URLs)
  • travis-ci.com/username (Travis badges in READMEs)
  • shields.io/github/…/username ( the shield badges would be in READMEs, types include stars, tags, contributors, and more)

You can use this command for each string after you identify where the above strings are located:

grep -rnw -e ‘foobar’

It will search all files for strings matching the whole (w) pattern (e) recursively (r) provided and prefix results with the line numbers (n) so you can find them easily.

title intro redirect_from versions topics shortTitle

Changing your GitHub username

You can change the username for your account on {% ifversion fpt or ghec %}{% data variables.product.prodname_dotcom_the_website %}{% elsif ghes %}{% data variables.location.product_location %} if your instance uses built-in authentication{% endif %}.

/articles/how-to-change-your-username

/articles/changing-your-github-user-name

/articles/renaming-a-user

/articles/what-happens-when-i-change-my-username

/articles/changing-your-github-username

/github/setting-up-and-managing-your-github-user-account/changing-your-github-username

/github/setting-up-and-managing-your-github-user-account/managing-user-account-settings/changing-your-github-username

/account-and-profile/setting-up-and-managing-your-github-user-account/managing-user-account-settings/changing-your-github-username

fpt ghes ghec

*

*

*

Accounts

Change your username

{% ifversion ghec or ghes %}

{% note %}

{% ifversion ghec %}

Note: Members of an {% data variables.enterprise.prodname_emu_enterprise %} cannot change usernames. Your enterprise’s IdP administrator controls your username for {% data variables.product.product_name %}. For more information, see «About {% data variables.product.prodname_emus %}.»

{% elsif ghes %}

Note: If you sign into {% data variables.location.product_location %} with LDAP credentials or single sign-on (SSO), only your local administrator can change your username. For more information about authentication methods for {% data variables.product.product_name %}, see «Authenticating users for {% data variables.location.product_location %}.»

{% endif %}

{% endnote %}

{% endif %}

About username changes

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.

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:

  • @mentions using your old username
  • Links to gists that include your old username

{% ifversion fpt or ghec %}

If you’re a member of an {% data variables.enterprise.prodname_emu_enterprise %}, you cannot make changes to your username. {% data reusables.enterprise-accounts.emu-more-info-account %}

{% endif %}

{% ifversion fpt or ghec %}

{% data reusables.accounts.rename-account-repo-namespace-retirement %} 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.»

{% endif %}

{% data reusables.package_registry.rename-account-namespace-retirement %}

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 account on {% data variables.location.product_location %} from elsewhere{% ifversion fpt or ghec %}, such as your LinkedIn or Twitter profile{% endif %}.

Your Git commits

{% ifversion fpt or ghec %}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 or ghec %}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.»

Your gists

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.

{% data reusables.user-settings.access_settings %}
{% data reusables.user-settings.account_settings %}
3. In the «Change username» section, click Change username.
Change Username button{% ifversion fpt or ghec %}
4. Read the warnings about changing your username. If you still want to change your username, click I understand, let’s change my username.
Change Username warning button
5. Type a new username.
New username field
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.
Change Username warning button
{% endif %}

Further reading

  • «Why are my commits linked to the wrong user?»{% ifversion fpt or ghec %}
  • «{% data variables.product.prodname_dotcom %} Username Policy»{% endif %}
title intro redirect_from versions topics shortTitle

Changing your GitHub username

You can change the username for your account on {% ifversion fpt or ghec %}{% data variables.product.prodname_dotcom_the_website %}{% elsif ghes %}{% data variables.location.product_location %} if your instance uses built-in authentication{% endif %}.

/articles/how-to-change-your-username

/articles/changing-your-github-user-name

/articles/renaming-a-user

/articles/what-happens-when-i-change-my-username

/articles/changing-your-github-username

/github/setting-up-and-managing-your-github-user-account/changing-your-github-username

/github/setting-up-and-managing-your-github-user-account/managing-user-account-settings/changing-your-github-username

/account-and-profile/setting-up-and-managing-your-github-user-account/managing-user-account-settings/changing-your-github-username

fpt ghes ghec

*

*

*

Accounts

Change your username

{% ifversion ghec or ghes %}

{% note %}

{% ifversion ghec %}

Note: Members of an {% data variables.enterprise.prodname_emu_enterprise %} cannot change usernames. Your enterprise’s IdP administrator controls your username for {% data variables.product.product_name %}. For more information, see «About {% data variables.product.prodname_emus %}.»

{% elsif ghes %}

Note: If you sign into {% data variables.location.product_location %} with LDAP credentials or single sign-on (SSO), only your local administrator can change your username. For more information about authentication methods for {% data variables.product.product_name %}, see «Authenticating users for {% data variables.location.product_location %}.»

{% endif %}

{% endnote %}

{% endif %}

About username changes

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.

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:

  • @mentions using your old username
  • Links to gists that include your old username

{% ifversion fpt or ghec %}

If you’re a member of an {% data variables.enterprise.prodname_emu_enterprise %}, you cannot make changes to your username. {% data reusables.enterprise-accounts.emu-more-info-account %}

{% endif %}

{% ifversion fpt or ghec %}

{% data reusables.accounts.rename-account-repo-namespace-retirement %} 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.»

{% endif %}

{% data reusables.package_registry.rename-account-namespace-retirement %}

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 account on {% data variables.location.product_location %} from elsewhere{% ifversion fpt or ghec %}, such as your LinkedIn or Twitter profile{% endif %}.

Your Git commits

{% ifversion fpt or ghec %}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 or ghec %}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.»

Your gists

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.

{% data reusables.user-settings.access_settings %}
{% data reusables.user-settings.account_settings %}
3. In the «Change username» section, click Change username.
Change Username button{% ifversion fpt or ghec %}
4. Read the warnings about changing your username. If you still want to change your username, click I understand, let’s change my username.
Change Username warning button
5. Type a new username.
New username field
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.
Change Username warning button
{% endif %}

Further reading

  • «Why are my commits linked to the wrong user?»{% ifversion fpt or ghec %}
  • «{% data variables.product.prodname_dotcom %} Username Policy»{% endif %}

Понравилась статья? Поделить с друзьями:

Читайте также:

  • Как изменить никнейм на faceit
  • Как изменить никнейм лига легенд
  • Как изменить никнейм инстаграм
  • Как изменить никнейм гитхаб
  • Как изменить никнейм валорант

  • 0 0 голоса
    Рейтинг статьи
    Подписаться
    Уведомить о
    guest

    0 комментариев
    Старые
    Новые Популярные
    Межтекстовые Отзывы
    Посмотреть все комментарии