Skip to main content

About source code imports using the command line

You can use command line tools to import source code and its revision history to GitHub Enterprise Cloud.

If you want to import a Git repository that is stored on a code hosting service that is publicly available on the internet, we recommend using GitHub Importer. For more information, see "Using GitHub Importer."

If your source code is not tracked by Git or is not publicly available, you can use the command line instead.

All of these tools import source code and revision history, only. If you also want to import your settings and your collaboration history, such as issues and pull requests, you'll need to use more advanced tools. To determine the best tool to use for your migration, see "Planning your migration to GitHub."

Further reading