diff --git a/content/account-and-profile/setting-up-and-managing-your-personal-account-on-github/managing-your-personal-account/best-practices-for-leaving-your-company.md b/content/account-and-profile/setting-up-and-managing-your-personal-account-on-github/managing-your-personal-account/best-practices-for-leaving-your-company.md deleted file mode 100644 index 508b7ae3a22a..000000000000 --- a/content/account-and-profile/setting-up-and-managing-your-personal-account-on-github/managing-your-personal-account/best-practices-for-leaving-your-company.md +++ /dev/null @@ -1,43 +0,0 @@ ---- -title: Best practices for leaving your company -intro: 'If you use your account on {% data variables.product.product_name %} for both personal and work purposes, there are a few things to keep in mind when you leave your company or organization.' -redirect_from: - - /articles/best-practices-for-leaving-your-company - - /github/setting-up-and-managing-your-github-user-account/best-practices-for-leaving-your-company - - /github/setting-up-and-managing-your-github-user-account/managing-user-account-settings/best-practices-for-leaving-your-company - - /account-and-profile/setting-up-and-managing-your-github-user-account/managing-user-account-settings/best-practices-for-leaving-your-company - - /account-and-profile/setting-up-and-managing-your-personal-account-on-github/managing-personal-account-settings/best-practices-for-leaving-your-company -versions: - fpt: '*' - ghec: '*' -topics: - - Accounts -shortTitle: Leaving your company ---- - -Before you leave your company, make sure you update the following information in your personal account: - -* Unverify your company email address by [deleting it in your Email settings](/account-and-profile/setting-up-and-managing-your-personal-account-on-github/managing-email-preferences/changing-your-primary-email-address). You can then re-add it without verifying to keep any associated commits linked to your account. -* [Change your primary email address](/account-and-profile/setting-up-and-managing-your-personal-account-on-github/managing-email-preferences/changing-your-primary-email-address) from your company email to your personal email. -* [Verify your new primary email address](/account-and-profile/setting-up-and-managing-your-personal-account-on-github/managing-email-preferences/verifying-your-email-address). -* [Change your GitHub username](/account-and-profile/setting-up-and-managing-your-personal-account-on-github/managing-user-account-settings/changing-your-github-username) to remove any references to your company or organization, if necessary. -* If you've enabled two-factor (2FA) authentication for your personal account, make sure that you (not your company) control the 2FA authentication method you have configured. For more information, see "[AUTOTITLE](/authentication/securing-your-account-with-two-factor-authentication-2fa/configuring-two-factor-authentication)." - -## Leaving organizations - -If you've been working with repositories that belong to an organization, you'll want to [remove yourself as a member of the organization](/account-and-profile/setting-up-and-managing-your-personal-account-on-github/managing-your-membership-in-organizations/removing-yourself-from-an-organization). Note that if you are the organization owner, you should first [transfer ownership of the organization](/organizations/managing-organization-settings/transferring-organization-ownership) to another person. - -Unless you're using a {% data variables.enterprise.prodname_managed_user %}, you'll still be able to access your personal account, even after leaving the organization. For more information about {% data variables.product.prodname_emus %}, see "[About {% data variables.product.prodname_emus %}]({% ifversion not ghec %}/enterprise-cloud@latest{% endif %}/admin/identity-and-access-management/using-enterprise-managed-users-for-iam/about-enterprise-managed-users){% ifversion not ghec %}" in the {% data variables.product.prodname_ghe_cloud %} documentation.{% else %}."{% endif %} - -## Removing professional associations with personal repositories - -If you've been collaborating professionally with another person on repositories that belong to their personal account, you'll want to [remove yourself as a collaborator](/account-and-profile/setting-up-and-managing-your-personal-account-on-github/managing-access-to-your-personal-repositories/removing-yourself-from-a-collaborators-repository) from those repositories. - -* [Stop watching repositories](https://github.com/watching) related to your work. You won't want those notifications anymore! -* [Transfer repositories you own](/repositories/creating-and-managing-repositories/transferring-a-repository) that others may need to continue working on after you leave. -* [Delete forks that belong to you](/repositories/creating-and-managing-repositories/deleting-a-repository) that are related to the work you were doing. Don't worry, deleting a fork doesn't delete the upstream repository. -* Delete local copies of your forks that may exist on your computer: - -```shell -rm -rf WORK_DIRECTORY -``` diff --git a/content/account-and-profile/setting-up-and-managing-your-personal-account-on-github/managing-your-personal-account/converting-a-user-into-an-organization.md b/content/account-and-profile/setting-up-and-managing-your-personal-account-on-github/managing-your-personal-account/converting-a-user-into-an-organization.md deleted file mode 100644 index 91125262b38f..000000000000 --- a/content/account-and-profile/setting-up-and-managing-your-personal-account-on-github/managing-your-personal-account/converting-a-user-into-an-organization.md +++ /dev/null @@ -1,82 +0,0 @@ ---- -title: Converting a user into an organization -redirect_from: - - /articles/what-is-the-difference-between-create-new-organization-and-turn-account-into-an-organization - - /articles/explaining-the-account-transformation-warning - - /articles/converting-a-user-into-an-organization - - /github/setting-up-and-managing-your-github-user-account/converting-a-user-into-an-organization - - /github/setting-up-and-managing-your-github-user-account/managing-user-account-settings/converting-a-user-into-an-organization - - /account-and-profile/setting-up-and-managing-your-github-user-account/managing-user-account-settings/converting-a-user-into-an-organization - - /account-and-profile/setting-up-and-managing-your-personal-account-on-github/managing-personal-account-settings/converting-a-user-into-an-organization -intro: You can convert your personal account into an organization. This allows more granular permissions for repositories that belong to the organization. -versions: - fpt: '*' - ghes: '*' - ghec: '*' -topics: - - Accounts -shortTitle: User into an organization ---- - -> [!WARNING] -> Before converting a user into an organization, keep these points in mind. -> -> * You will **no longer** be able to sign into the converted personal account. -> * You will **no longer** be able to create or modify gists owned by the converted personal account. -> * An organization **cannot** be converted back to a user. -> * The SSH keys, OAuth tokens, job profile, reactions, and associated user information, **will not** be transferred to the organization. This is only true for the personal account that's being converted, not any of the personal account's collaborators. -> * Any {% data variables.product.prodname_github_apps %} installed on the converted personal account will be uninstalled. -> * Any commits made with the converted personal account **will no longer be linked** to that account. The commits themselves **will** remain intact. -> * Any existing comments made by the converted personal account **will no longer be linked** to that account. The comments themselves **will** remain intact, but will be associated with the `ghost` user. -> * Any forks of private repositories made with the converted personal account will be deleted. -> * Since organizations cannot star repositories, you will no longer have access to your original list of starred repositories. -> * You will no longer have access to the list of users you were following from your user account. -> * Any followers of your user account will not automatically follow the new organization. -{% ifversion projects-v2 %}> * Any existing collaborators on your projects will still have access to those projects in the new organization.{% endif %} -> * {% data variables.product.prodname_actions %} is not automatically enabled on the account after converting it to an organization, and will have to be re-enabled. To re-enable {% data variables.product.prodname_actions %}, create a new workflow file in the `.github/workflows` directory of your repository. - -## Prerequisites - -The personal account you want to convert cannot be a member of any organizations. If the personal account you want to convert is a member of an organization, you must leave the organization before you can convert the account. - -{% ifversion ghes %} -You may not be able to convert a personal account into an organization, if an enterprise owner has set a policy at the enterprise level. See, "[AUTOTITLE](/admin/managing-accounts-and-repositories/managing-organizations-in-your-enterprise/preventing-users-from-creating-organizations)." -{% endif %} - -## Keep your personal account and create a new organization manually - -If you want your organization to have the same name that you are currently using for your personal account, or if you want to keep your personal account's information intact, then you must create a new organization and transfer your repositories to it instead of converting your personal account into an organization. - -1. To retain your current personal account name for your personal use, [change the name of your personal account](/account-and-profile/setting-up-and-managing-your-personal-account-on-github/managing-user-account-settings/changing-your-github-username) to something new and wonderful. -1. [Create a new organization](/organizations/collaborating-with-groups-in-organizations/creating-a-new-organization-from-scratch) with the original name of your personal account. -1. [Transfer your repositories](/repositories/creating-and-managing-repositories/transferring-a-repository) to your new organization account. - -## Convert your personal account into an organization automatically - -You can also convert your personal account directly into an organization. Converting your account: -* Preserves the repositories as they are without the need to transfer them to another account manually -* Automatically invites collaborators to teams with permissions equivalent to what they had before -{%- ifversion fpt or ghec %} -* For personal accounts on {% data variables.product.prodname_pro %}, automatically transitions billing to [the paid {% data variables.product.prodname_team %}](/billing/managing-the-plan-for-your-github-account/about-billing-for-plans) without the need to re-enter payment information, adjust your billing cycle, or double pay at any time -{%- endif %} - -When you convert a personal account into an organization, we'll add collaborators on repositories that belong to the account to the new organization as outside collaborators. You can then invite outside collaborators to become members of your new organization if you wish. For more information, see "[AUTOTITLE](/organizations/managing-peoples-access-to-your-organization-with-roles/roles-in-an-organization#outside-collaborators)." - -1. Create a new personal account, which you'll use to sign into GitHub and access the organization and your repositories after you convert. -1. [Leave any organizations](/account-and-profile/setting-up-and-managing-your-personal-account-on-github/managing-your-membership-in-organizations/removing-yourself-from-an-organization) the personal account you're converting has joined. -{% data reusables.user-settings.access_settings %} -{% data reusables.user-settings.organizations %} -1. In the "Transform account" section, click **Turn USERNAME into an organization**. -1. Review the warning, then click **Turn USERNAME into an organization**. -1. Under "Choose an organization owner", type either the secondary personal account you created in the previous section, or another user you trust, to manage the organization. -1. Choose your new organization's subscription and enter your billing information, if prompted. -1. Click **Create Organization**. -1. Sign in to the new personal account you created earlier, then use the context switcher to access your new organization. - -## Further reading - -* "[AUTOTITLE](/organizations/organizing-members-into-teams)" -{% ifversion fpt or ghec %} -* "[AUTOTITLE](/organizations/managing-membership-in-your-organization/inviting-users-to-join-your-organization)" -{% endif %} -* "[AUTOTITLE](/account-and-profile/setting-up-and-managing-your-personal-account-on-github/managing-your-membership-in-organizations/accessing-an-organization)" diff --git a/content/account-and-profile/setting-up-and-managing-your-personal-account-on-github/managing-your-personal-account/deleting-your-personal-account.md b/content/account-and-profile/setting-up-and-managing-your-personal-account-on-github/managing-your-personal-account/deleting-your-personal-account.md deleted file mode 100644 index 7ff1d42e7316..000000000000 --- a/content/account-and-profile/setting-up-and-managing-your-personal-account-on-github/managing-your-personal-account/deleting-your-personal-account.md +++ /dev/null @@ -1,72 +0,0 @@ ---- -title: Deleting your personal account -intro: 'You can delete your personal account on {% data variables.location.product_location %} at any time.' -redirect_from: - - /articles/deleting-a-user-account - - /articles/deleting-your-user-account - - /github/setting-up-and-managing-your-github-user-account/deleting-your-user-account - - /github/setting-up-and-managing-your-github-user-account/managing-user-account-settings/deleting-your-user-account - - /account-and-profile/setting-up-and-managing-your-github-user-account/managing-user-account-settings/deleting-your-user-account - - /account-and-profile/setting-up-and-managing-your-personal-account-on-github/managing-personal-account-settings/deleting-your-personal-account -versions: - fpt: '*' - ghes: '*' - ghec: '*' -topics: - - Accounts -shortTitle: Delete your account ---- - -## About deletion of your personal account - -Deleting your personal account removes all repositories, forks of private repositories, wikis, issues, pull requests, and pages owned by your account. {% ifversion fpt or ghec %}Issues and pull requests you've created and comments you've made in repositories owned by other users will not be deleted. Your resources and comments will become associated with the [ghost user](https://github.com/ghost).{% else %}Issues and pull requests you've created and comments you've made in repositories owned by other users will not be deleted.{% endif %} - -{% ifversion fpt or ghec %} - -{% data reusables.accounts.delete-account-repo-namespace-retirement %} - -{% endif %} - -{% data reusables.package_registry.delete-account-namespace-retirement %} - -{% ifversion ghec %} - -> [!NOTE] -> If your enterprise manages your account and you sign into {% data variables.product.github %} through your company's identity provider (IdP), you cannot delete your account. For more information, see "[AUTOTITLE](/admin/identity-and-access-management/using-enterprise-managed-users-for-iam/about-enterprise-managed-users)." - -{% endif %} - -{% ifversion fpt or ghec %}When you delete your account we stop billing you. The email address associated with the account becomes available for use with a different account. After 90 days, the account name also becomes available to anyone else to use on a new account.{% endif %} - -If you're the only owner of an organization, you must transfer ownership to another person or delete the organization before you can delete your personal account. If there are other owners in the organization, you must remove yourself from the organization before you can delete your personal account. - -For more information, see the following articles. - -* "[AUTOTITLE](/organizations/managing-organization-settings/transferring-organization-ownership)" -* "[AUTOTITLE](/organizations/managing-organization-settings/deleting-an-organization-account)" -* "[AUTOTITLE](/account-and-profile/setting-up-and-managing-your-personal-account-on-github/managing-your-membership-in-organizations/removing-yourself-from-an-organization)" - -{% ifversion ghes %} -> [!NOTE] -> * You should contact an enterprise owner before deleting your account on {% data variables.product.product_name %}. -{% endif %} - -## Back up your account data - -Before you delete your personal account, make a copy of all repositories, private forks, wikis, issues, and pull requests owned by your account. For more information, see "[AUTOTITLE](/repositories/archiving-a-github-repository/backing-up-a-repository)." - -> [!WARNING] -> Once your personal account has been deleted, {% ifversion fpt or ghec %}{% data variables.product.company_short %}{% elsif ghes %}an enterprise owner{% endif %} cannot restore your content. - -## Deleting your personal account - -{% data reusables.user-settings.access_settings %} -{% data reusables.user-settings.account_settings %} -1. At the bottom of the Account Settings page, under "Delete account", click **Delete your account**. Before you can delete your personal account: - * If you're the only owner in the organization, you must transfer ownership to another person or delete your organization. - * If there are other organization owners in the organization, you must remove yourself from the organization. -1. In the "Make sure you want to do this" dialog box, complete the steps to confirm you understand what happens when your account is deleted: - {% ifversion fpt or ghec %}- Recall that all repositories, forks of private repositories, wikis, issues, pull requests and {% data variables.product.prodname_pages %} sites owned by your account will be deleted. Your billing will end immediately. Your username will be available to anyone for use on {% data variables.product.product_name %} after 90 days.{% else %} - * Recall that all repositories, forks of private repositories, wikis, issues, pull requests and pages owned by your account will be deleted, and your username will be available for use on {% data variables.product.product_name %}.{% endif %} - * In the first field, type your {% data variables.product.product_name %} username or email. - * In the second field, type the phrase from the prompt. diff --git a/content/account-and-profile/setting-up-and-managing-your-personal-account-on-github/managing-your-personal-account/index.md b/content/account-and-profile/setting-up-and-managing-your-personal-account-on-github/managing-your-personal-account/index.md deleted file mode 100644 index 9cdc2ce522d3..000000000000 --- a/content/account-and-profile/setting-up-and-managing-your-personal-account-on-github/managing-your-personal-account/index.md +++ /dev/null @@ -1,18 +0,0 @@ ---- -title: Managing your personal account -intro: 'You can manage your personal account on {% data variables.product.github %}. For example, you can {% ifversion fpt or ghec %}manage multiple accounts, {% endif %}convert an account to an organization, or delete an account.' -shortTitle: Manage personal account -versions: - fpt: '*' - ghes: '*' - ghec: '*' -topics: - - Accounts -children: - - /managing-multiple-accounts - - /merging-multiple-personal-accounts - - /converting-a-user-into-an-organization - - /best-practices-for-leaving-your-company - - /unlinking-your-email-address-from-a-locked-account - - /deleting-your-personal-account ---- diff --git a/content/account-and-profile/setting-up-and-managing-your-personal-account-on-github/managing-your-personal-account/managing-multiple-accounts.md b/content/account-and-profile/setting-up-and-managing-your-personal-account-on-github/managing-your-personal-account/managing-multiple-accounts.md deleted file mode 100644 index d8fee3ffb078..000000000000 --- a/content/account-and-profile/setting-up-and-managing-your-personal-account-on-github/managing-your-personal-account/managing-multiple-accounts.md +++ /dev/null @@ -1,127 +0,0 @@ ---- -title: Managing multiple accounts -intro: 'If you use one workstation to contribute to projects for more than one account, you can modify your Git configuration to simplify the contribution process.' -versions: - feature: multiple-accounts-one-workstation -topics: - - Accounts - - Git - - GitHub -shortTitle: Manage multiple accounts ---- - -## About management of multiple accounts - -In some cases, you may need to use multiple accounts on {% data variables.product.github %}. For example, you may have a personal account for open source contributions, and your employer may also create and manage a user account for you within an enterprise. - -You cannot use a {% data variables.enterprise.prodname_managed_user %} to contribute to public projects on {% data variables.location.product_location %}, so you must contribute to those resources using your personal account. For more information, see "[About {% data variables.product.prodname_emus %}]({% ifversion fpt %}/enterprise-cloud@latest{% endif %}/admin/identity-and-access-management/using-enterprise-managed-users-for-iam/about-enterprise-managed-users#abilities-and-restrictions-of-managed-user-accounts){% ifversion fpt %}" in the {% data variables.product.prodname_ghe_cloud %} documentation.{% elsif ghec %}."{% endif %} - -{% ifversion account-switcher %} - -If you need to use multiple accounts, you can stay signed in to your accounts and switch between them. For example, switching between a personal account and a service account. For more information, see "[AUTOTITLE](/authentication/keeping-your-account-and-data-secure/switching-between-accounts)." - -{% endif %} - -If you want to use one workstation to contribute from both accounts, you can simplify contribution with Git by using a mixture of protocols to access repository data, or by using credentials on a per-repository basis. - -> [!WARNING] -> Be mindful when you use one workstation to contribute to two separate accounts. Management of two or more accounts can increase the chance of mistakenly leaking internal code to the public. - -If you aren't required to use a {% data variables.enterprise.prodname_managed_user %}, {% data variables.product.company_short %} recommends that you use one personal account for all your work on {% data variables.location.product_location %}. With a single personal account, you can contribute to a combination of personal, open source, or professional projects using one identity. Other people can invite the account to contribute to both individual repositories and repositories owned by an organization, and the account can be a member of multiple organizations or enterprises. - -## Contributing to two accounts using HTTPS and SSH - -If you contribute with two accounts from one workstation, you can access repositories by using a different protocol and credentials for each account. - -Git can use either the HTTPS or SSH protocol to access and update data in repositories on {% data variables.product.github %}. The protocol you use to clone a repository determines which credentials your workstation will use to authenticate when you access the repository. With this approach to account management, you store the credentials for one account to use for HTTPS connections and upload an SSH key to the other account to use for SSH connections. - -You can find both the HTTPS or an SSH URLs for cloning a repository on the repository's page. For more information, see "[AUTOTITLE](/repositories/creating-and-managing-repositories/cloning-a-repository)." - -For more information about the use of SSH to access repositories on {% data variables.product.product_name %}, see "[AUTOTITLE](/authentication/connecting-to-github-with-ssh)." - -## Contributing to multiple accounts using HTTPS and {% data variables.product.pat_generic %}s - -Alternatively, if you want to use the HTTPS protocol for both accounts, you can use different {% data variables.product.pat_generic %}s for each account by configuring Git to store different credentials for each repository. - -{% mac %} - -{% data reusables.git.open-terminal %} -{% data reusables.git.confirm-credential-manager %} -{% data reusables.git.clear-the-stored-credentials %} - {% data reusables.git.no-credential-manager %} - * If the output is `osxkeychain`, you're using the macOS keychain. To clear the credentials, you can use the credential helper on the command line: - - ```shell - $ git credential-osxkeychain erase - host={% data variables.product.product_url %} - protocol=https - > [Press Return] - > - ``` - - {% data reusables.git.clear-stored-gcm-credentials %} - - ```shell copy - echo "protocol=https\nhost=github.com" | git credential-manager erase - ``` -{% data reusables.git.cache-on-repository-path %} -{% data reusables.accounts.create-personal-access-tokens %} -{% data reusables.git.provide-credentials %} - -{% endmac %} - -{% windows %} - -1. Open Git Bash. -{% data reusables.git.confirm-credential-manager %} -{% data reusables.git.clear-the-stored-credentials %} - {% data reusables.git.no-credential-manager %} - {% data reusables.git.clear-stored-gcm-credentials %} - - ```shell copy - echo "protocol=https`nhost=github.com" | git credential-manager erase - ``` - - * If the output is `wincred`, you're using the Windows Credential Manager. To clear the credentials, enter the following command. - - ```shell copy - cmdkey /delete:LegacyGeneric:target=git:https://github.com - ``` - -{% data reusables.git.cache-on-repository-path %} -{% data reusables.accounts.create-personal-access-tokens %} -{% data reusables.git.provide-credentials %} - -{% endwindows %} - -{% linux %} - -{% data reusables.git.open-terminal %} -{% data reusables.git.confirm-credential-manager %} -{% data reusables.git.clear-the-stored-credentials %} - {% data reusables.git.no-credential-manager %} - {% data reusables.git.clear-stored-gcm-credentials %} - - ```shell copy - echo "protocol=https\nhost=github.com" | git credential-manager erase - ``` -{% data reusables.git.cache-on-repository-path %} -{% data reusables.accounts.create-personal-access-tokens %} -{% data reusables.git.provide-credentials %} - -{% endlinux %} - -## Contributing to multiple accounts using SSH and `GIT_SSH_COMMAND` - -If you want to use the SSH protocol for both accounts, you can use different SSH keys for each account. For more information about using SSH, see "[AUTOTITLE](/authentication/connecting-to-github-with-ssh)." - -To use a different SSH key for different repositories that you clone to your workstation, you must write a shell wrapper function for Git operations. The function should perform the following steps. -1. Determine the repository's full name with owner, using a command such as `git config --get remote.origin.url`. -1. Choose the correct SSH key for authentication. -1. Modify `GIT_SSH_COMMAND` accordingly. For more information about `GIT_SSH_COMMAND`, see [Environment Variables](https://git-scm.com/docs/git#Documentation/git.txt-codeGITSSHCOMMANDcode) in the Git documentation. - -For example, the following command sets the `GIT_SSH_COMMAND` environment variable to specify an SSH command that uses the private key file at **_PATH/TO/KEY/FILE_** for authentication to clone the repository named OWNER/REPOSITORY on {% data variables.location.product_location %}. - -```shell copy -GIT_SSH_COMMAND='ssh -i PATH/TO/KEY/FILE -o IdentitiesOnly=yes' git clone git@github.com:OWNER/REPOSITORY -``` diff --git a/content/account-and-profile/setting-up-and-managing-your-personal-account-on-github/managing-your-personal-account/merging-multiple-personal-accounts.md b/content/account-and-profile/setting-up-and-managing-your-personal-account-on-github/managing-your-personal-account/merging-multiple-personal-accounts.md deleted file mode 100644 index e88ac09cfe7d..000000000000 --- a/content/account-and-profile/setting-up-and-managing-your-personal-account-on-github/managing-your-personal-account/merging-multiple-personal-accounts.md +++ /dev/null @@ -1,45 +0,0 @@ ---- -title: Merging multiple personal accounts -intro: 'If you have separate accounts for work and personal use, you can merge the accounts.' -redirect_from: - - /articles/can-i-merge-two-accounts - - /articles/keeping-work-and-personal-repositories-separate - - /articles/merging-multiple-user-accounts - - /github/setting-up-and-managing-your-github-user-account/merging-multiple-user-accounts - - /github/setting-up-and-managing-your-github-user-account/managing-user-account-settings/merging-multiple-user-accounts - - /account-and-profile/setting-up-and-managing-your-github-user-account/managing-user-account-settings/merging-multiple-user-accounts - - /account-and-profile/setting-up-and-managing-your-personal-account-on-github/managing-personal-account-settings/merging-multiple-personal-accounts -versions: - fpt: '*' - ghec: '*' -topics: - - Accounts -shortTitle: Merge multiple accounts ---- - -{% ifversion ghec %} - -> [!TIP] -> {% data variables.product.prodname_emus %} allow an enterprise to provision unique personal accounts for its members through an identity provider (IdP). For more information, see "[AUTOTITLE](/admin/identity-and-access-management/using-enterprise-managed-users-for-iam/about-enterprise-managed-users)." For other use cases, we recommend using only one personal account to manage both personal and professional repositories. - -{% else %} - -> [!TIP] -> We recommend using only one personal account to manage both personal and professional repositories. - -{% endif %} - -> [!WARNING] -> * Organization and repository access permissions aren't transferable between accounts. If the account you want to delete has an existing access permission, an organization owner or repository administrator will need to invite the account that you want to keep. -> * Any commits authored with a {% data variables.product.company_short %}-provided `noreply` email address cannot be transferred from one account to another. If the account you want to delete used the **Keep my email address private** option, it won't be possible to transfer the commits authored by the account you are deleting to the account you want to keep. -> * Issues, pull requests, and discussions will not be attributed to the new account. -> * Achievements are not able to be transferred between accounts. - -1. [Transfer any repositories](/repositories/creating-and-managing-repositories/transferring-a-repository) from the account you want to delete to the account you want to keep. Issues, pull requests, and wikis are transferred as well. Verify the repositories exist on the account you want to keep. -1. [Update the remote URLs](/get-started/getting-started-with-git/managing-remote-repositories) in any local clones of the repositories that were moved. -1. To attribute past commits to the new account, add the email address you used to author the commits to the account you're keeping. For more information, see "[AUTOTITLE](/account-and-profile/setting-up-and-managing-your-github-profile/managing-contribution-settings-on-your-profile/why-are-my-contributions-not-showing-up-on-my-profile#your-local-git-commit-email-isnt-connected-to-your-account)" -1. [Delete the account](/account-and-profile/setting-up-and-managing-your-personal-account-on-github/managing-your-personal-account/deleting-your-personal-account) you no longer want to use. - -## Further reading - -* "[AUTOTITLE](/get-started/learning-about-github/types-of-github-accounts)" diff --git a/content/account-and-profile/setting-up-and-managing-your-personal-account-on-github/managing-your-personal-account/unlinking-your-email-address-from-a-locked-account.md b/content/account-and-profile/setting-up-and-managing-your-personal-account-on-github/managing-your-personal-account/unlinking-your-email-address-from-a-locked-account.md deleted file mode 100644 index 7a2ab94703dc..000000000000 --- a/content/account-and-profile/setting-up-and-managing-your-personal-account-on-github/managing-your-personal-account/unlinking-your-email-address-from-a-locked-account.md +++ /dev/null @@ -1,40 +0,0 @@ ---- -title: Unlinking your email address from a locked account -intro: 'If you have lost your two-factor authentication (2FA) credentials and are unable to recover access, you can remove the connection between your email address and a 2FA locked account. The email address is then available for you to link it to a new or existing account, maintaining your commit history.' -redirect_from: - - /early-access/account-and-profile/unlinking-your-email-address-from-a-locked-account -versions: - fpt: '*' - ghec: '*' -topics: - - Accounts - - 2FA -shortTitle: Unlink your email ---- - -> [!NOTE] -> * Following these steps will not disable 2FA or provide access to a locked account, but will instead unlink the associated email address so it may be used for a different account. If you cannot regain access to the 2FA locked account, these steps will permanently break the link between the account and the linked email address. Before continuing with this article, be sure you have lost all access to your account. For more information, see "[AUTOTITLE](/authentication/securing-your-account-with-two-factor-authentication-2fa/recovering-your-account-if-you-lose-your-2fa-credentials)." -> * If you recover access to your locked account, you can re-link an unlinked email address. For more information, see "[AUTOTITLE](/account-and-profile/setting-up-and-managing-your-personal-account-on-github/managing-email-preferences/adding-an-email-address-to-your-github-account)." - -## About unlinking your email address - -Since an email address can only be associated with a single {% data variables.product.prodname_dotcom %} account, when you've lost your 2FA credentials and are unable to recover access, unlinking your email address from the locked account allows you to link that email address to a new or existing account. Additionally, linking a previously used commit email address to a new account will connect your commit history to that account. Unless you have chosen to keep your email address private, your account's commit email address is the same as your account's primary email address. For more information, see "[AUTOTITLE](/account-and-profile/setting-up-and-managing-your-personal-account-on-github/managing-email-preferences/setting-your-commit-email-address)." Be aware that nothing else associated with your 2FA locked account, including your repositories, permissions, and profile, will transfer to your new account. - -> [!NOTE] -> Backup email addresses are not associated with your commits. Unlinking a backup email address and linking the email address to a different account will not connect your commit history to that account. - -## Unlinking your email address - -1. Navigate to [https://github.com/login](https://github.com/login). -1. To prompt two-factor authentication, type your username and password, then click **Sign in**. -1. Under "Unable to verify with your security key?", click **Use a recovery code or request a reset**. -1. Under "Locked out?", click **Recover your account or unlink an email address**. -1. In the modal that appears, click **I understand, get started**. -1. To send an email containing a one-time password to each email address associated with your account, click **Send one-time password**. -1. To verify your identity, type the one-time password from your email in the "One-time password" text field, then click **Verify email address**. -{% data reusables.accounts.unlinking-email-address %} - - > [!NOTE] - > You can also link your unlinked email to an existing {% data variables.product.prodname_dotcom %} account. For more information, see "[AUTOTITLE](/account-and-profile/setting-up-and-managing-your-personal-account-on-github/managing-email-preferences/adding-an-email-address-to-your-github-account)." - -1. Optionally, if you have any form of payment set up on the locked account, please contact us through the {% data variables.contact.contact_support_portal %} to cancel future payments. For example, you might have a paid subscription or sponsor developers through {% data variables.product.prodname_sponsors %}. If you are sponsored through {% data variables.product.prodname_sponsors %}, please mention this so that the team can help you migrate your sponsorships.