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 プライマリメールアドレスの変更.

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

    For more information, see プライマリメールアドレスの変更.

  3. Verify your new primary email address.

    For more information, see メールアドレスを検証する.

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

    For more information, see ユーザー名の変更.

  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 2 要素認証を設定する.

Leave organization memberships

メモ

Unless you're using a マネージド ユーザー アカウント, 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 Organization の所有権を移譲する.

  2. Remove yourself from the organization.

    For more information, see Organization から自分を削除する.

Clean up professional repository associations

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

    For more information, see コラボレーターのリポジトリから自分を削除する.

  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 リポジトリを移譲する.

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

    Deleting a fork doesn't delete the upstream repository.

    For more information, see リポジトリの削除.

  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.