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 Modification de votre adresse e-mail principale.

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

    For more information, see Modification de votre adresse e-mail principale.

  3. Verify your new primary email address.

    For more information, see Vérification de votre adresse e-mail.

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

    For more information, see Modification du nom d’utilisateur.

  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 Configuration de l’authentification à 2 facteurs.

Leave organization memberships

Remarque

Unless you're using a compte d’utilisateur managé, 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 Transfert de propriété d’une organisation.

  2. Remove yourself from the organization.

    For more information, see Vous supprimer vous-même d’une organisation.

Clean up professional repository associations

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

    For more information, see Vous supprimer en tant que collaborateur d’un dépôt.

  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 Transfert d’un dépôt.

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

    Deleting a fork doesn't delete the upstream repository.

    For more information, see Suppression d’un référentiel.

  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.