Skip to main content

Prepare for job change

If you use your GitHub account for both personal and work purposes, there are steps to follow when you leave your company or organization.

Update your personal account information

  1. Unverify your company email address by deleting it in your Email settings.

    After removal, you can re-add this email without verifying to keep any associated commits linked to your account.

    For more information, see Alterar endereço de e-mail principal.

  2. Change your primary email address from your company email to your personal email.

    For more information, see Alterar endereço de e-mail principal.

  3. Verify your new primary email address.

    For more information, see Verificar endereço de e-mail.

  4. Update your GitHub username if it contains references to your company or organization.

    For more information, see Alterações de nome de usuário.

  5. Review and update your two-factor authentication (2FA) methods to ensure they aren't linked to company resources:

    • If you use a TOTP app on a company phone, transfer it to your personal device.
    • If you've registered company-owned security keys, remove them and add personal ones instead.
    • If you're using GitHub Mobile on a company device, install it on your personal device.
    • Download fresh recovery codes and store them in a personal secure location.

    For more information, see Configurar a autenticação de dois fatores.

Leave organization memberships

Observação

Unless you're using a conta de usuário gerenciada, you'll still be able to access your personal account after leaving an organization.

  1. If you're the organization owner, transfer ownership to another person before removing yourself.

    For more information, see Transferir a propriedade da organização.

  2. Remove yourself from the organization.

    For more information, see Remover a si mesmo de uma organização.

Clean up professional repository associations

  1. Remove yourself as a collaborator from repositories owned by others.

    For more information, see Remover a si mesmo de um repositório de colaborador.

  2. Stop watching work-related repositories to avoid unnecessary notifications.

    To manage your watched repositories, visit https://github.com/watching.

  3. Transfer repositories that you own that others may need to continue working on.

    For more information, see Transferir um repositório.

  4. Delete any work-related forks that belong to you.

    Deleting a fork doesn't delete the upstream repository.

    For more information, see Excluir um repositório.

  5. Delete local copies of your work repositories from your computer by running the following command:

    rm -rf WORK_DIRECTORY
    

    Replace WORK_DIRECTORY with the path to your work repository.