Skip to main content

This version of GitHub Enterprise Server was discontinued on 2026-03-17. 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 Server. For help with the upgrade, contact GitHub Enterprise support.

Migrations documentation

If you're moving to GitHub from another code hosting platform or moving between GitHub products, learn how to use our migration tooling to bring your work with you.

Articles

Understand enterprise migration tools

About ghe-migrator

You can use ghe-migrator to transfer data from a source location (either a GitHub.com organization or a GitHub Enterprise Server instance) to a target GitHub Enterprise Server instance.
Understand enterprise migration tools

About GitHub Enterprise Importer

With GitHub Enterprise Importer, you can migrate your enterprise to GitHub Enterprise Cloud from various sources.
Plan your migration

About GitHub's migration tooling

GitHub provides a variety of different tooling options to support migrations to GitHub and between GitHub products.
Plan your migration

About locked repositories

Repositories can be locked to prevent changes, often for migrations.
Understand enterprise migration tools

About migrations between GitHub products

Learn which data GitHub Enterprise Importer can migrate between GitHub products.
Understand enterprise migration tools

About migrations from Bitbucket Server to GitHub Enterprise Cloud

Learn which data GitHub Enterprise Importer can migrate.
Import source code

About source code imports using the command line

You can use command line tools to import source code and its revision history to GitHub.
Run an enterprise migration

Accessing your migration logs for GitHub Enterprise Importer

After running a migration, you should review the migration log to check for data that didn't migrate as expected.
Import source code

Adding locally hosted code to GitHub

If your code is stored locally on your computer and is tracked by Git or not tracked by any version control system (VCS), you can import the code to GitHub using GitHub CLI or Git commands.
Showing 1-9 of 29