Article version: Enterprise Server 2.13

This version of GitHub Enterprise will be discontinued on This version of GitHub Enterprise was discontinued on 2019-03-27. No patch releases will be made, even for critical security issues. For better performance, improved security, and new features, upgrade to the latest version of GitHub Enterprise. For help with the upgrade, contact GitHub Enterprise support.

Completing the import on GitHub Enterprise Server

After your migration is applied to your target instance and you have reviewed the migration, you'll unlock the repositories and delete them off the source. Before deleting your source data we recommend waiting around two weeks to ensure that everything is functioning as expected.

Unlocking repositories on the target instance

  1. SSH into your GitHub Enterprise Server instance.

    $ ssh -p 122 admin@HOSTNAME
  2. Unlock all the imported repositories with the ghe-migrator unlock command. You'll need your Migration GUID:

    $ ghe-migrator unlock -g MIGRATION_GUID
    > Unlocked octo-org/octo-project

Unlocking repositories on the source

Unlocking repositories from a GitHub.com organization

To unlock the repositories on a GitHub.com organization, you'll send a DELETE request to the migration unlock endpoint. You'll need:

Deleting repositories from a GitHub.com organization

After unlocking the GitHub.com organization's repositories, you should delete every repository you previously migrated using the repository delete endpoint. You'll need your access token for authentication:

curl -H "Authorization: token GITHUB_ACCESS_TOKEN" -X DELETE \
  https://api.github.com/repos/orgname/repo_name

Unlocking repositories from a GitHub Enterprise Server instance

  1. SSH into your GitHub Enterprise Server instance.

    $ ssh -p 122 admin@HOSTNAME
  2. Unlock all the imported repositories with the ghe-migrator unlock command. You'll need your Migration GUID:

    $ ghe-migrator unlock -g MIGRATION_GUID
    > Unlocked octo-org/octo-project

Ask a human

Can't find what you're looking for?

Contact us