1
0
mirror of synced 2025-12-21 10:57:10 -05:00
Files
docs/content/migrations/overview/migration-paths-to-github.md
Sunbrye Ly a58436e431 Content linting issues (#56705)
Co-authored-by: Felicity Chapman <felicitymay@github.com>
Co-authored-by: mc <42146119+mchammer01@users.noreply.github.com>
2025-08-15 09:39:06 +00:00

406 lines
27 KiB
Markdown

---
title: Migration paths to GitHub
shortTitle: Migration paths
intro: 'See an overview of the paths available for migration to {% data variables.product.prodname_dotcom %} from other products, or between {% data variables.product.prodname_dotcom %} products.'
versions:
fpt: '*'
ghes: '*'
ghec: '*'
---
## About migration paths to {% data variables.product.prodname_dotcom %}
{% data reusables.migrations.about-migrations %}
{% data reusables.migrations.about-migration-paths %} For some migration paths, we offer specialist tools that allow you to migrate source, history, and metadata. For others, you'll need to perform a simpler "source and history" or "source snapshot" migration.
Some migration paths require tools that are only available with expert-led migrations. For more information, contact your account manager on {% data variables.contact.contact_enterprise_sales %} or see the [{% data variables.product.prodname_expert_services %}](https://github.com/services/) website.
In our recommendations, we'll assume that you want the highest level of fidelity if possible, which includes source, history, and metadata.
## Migrations to {% data variables.product.prodname_dotcom_the_website %}
You can review the scope and tooling for your migration to {% data variables.product.prodname_dotcom_the_website %}, which includes migrations to {% data variables.product.prodname_ghe_cloud %}. You can also review any additional information or caveats.
* [{% data variables.product.prodname_ghe_server %} 3.4.1 or newer to {% data variables.product.prodname_dotcom_the_website %}](#github-enterprise-server-341-or-newer-to-githubcom)
* [{% data variables.product.prodname_ghe_server %} 3.4.0 or older to {% data variables.product.prodname_dotcom_the_website %}](#github-enterprise-server-340-or-older-to-githubcom)
* [{% data variables.product.prodname_dotcom_the_website %} to {% data variables.product.prodname_dotcom_the_website %}](#githubcom-to-githubcom)
* [Azure DevOps Services (Azure DevOps Cloud) to {% data variables.product.prodname_dotcom_the_website %}](#azure-devops-services-azure-devops-cloud-to-githubcom)
* [Azure DevOps Server to {% data variables.product.prodname_dotcom_the_website %}](#azure-devops-server-to-githubcom)
* [Bitbucket Cloud (Bitbucket.org) to {% data variables.product.prodname_dotcom_the_website %}](#bitbucket-cloud-bitbucketorg-to-githubcom)
* [Bitbucket Server or Bitbucket Data Center to {% data variables.product.prodname_dotcom_the_website %}](#bitbucket-server-or-bitbucket-data-center-to-githubcom)
* [GitLab to {% data variables.product.prodname_dotcom_the_website %}](#gitlab-to-githubcom)
* [Any Git repository to {% data variables.product.prodname_dotcom_the_website %}](#any-git-repository-to-githubcom)
* [Any Mercurial repository to {% data variables.product.prodname_dotcom_the_website %}](#any-mercurial-repository-to-githubcom)
* [Any Subversion (SVN) repository to {% data variables.product.prodname_dotcom_the_website %}](#any-subversion-svn-repository-to-githubcom)
* [Any Team Foundation Version Control (TFVC) repository to {% data variables.product.prodname_dotcom_the_website %}](#any-team-foundation-version-control-tfvc-repository-to-githubcom)
* [Any Perforce repository to {% data variables.product.prodname_dotcom_the_website %}](#any-perforce-repository-to-githubcom)
* [Any other repository to {% data variables.product.prodname_dotcom_the_website %}](#any-other-repository-to-githubcom)
* [{% data variables.enterprise.data_residency_site %} to {% data variables.product.prodname_dotcom_the_website %}](#ghecom-to-githubcom)
### {% data variables.product.prodname_ghe_server %} 3.4.1 or newer to {% data variables.product.prodname_dotcom_the_website %}
* **Scope:** Source, history, and metadata
* **Tooling:** {% data variables.product.prodname_importer_proper_name %}
* **More information:**
* [AUTOTITLE](/migrations/using-github-enterprise-importer)
* [{% data variables.product.prodname_expert_services %}](https://github.com/services/) website
* **Caveats:**
* {% data reusables.migrations.large-repositories-require-expert-services %}
* {% data reusables.migrations.migration-instructions-for-any-git-repository-to-githubcom %}
### {% data variables.product.prodname_ghe_server %} 3.4.0 or older to {% data variables.product.prodname_dotcom_the_website %}
* **Scope:** Source, history, and metadata
* **Tooling:** {% data variables.product.prodname_importer_proper_name %}
* **More information:**
* [AUTOTITLE](/migrations/using-github-enterprise-importer)
* [{% data variables.product.prodname_expert_services %}](https://github.com/services/) website
* **Caveats:**
* {% data reusables.migrations.large-repositories-require-expert-services %}
* {% data reusables.migrations.migration-instructions-for-any-git-repository-to-githubcom %}
### {% data variables.product.prodname_dotcom_the_website %} to {% data variables.product.prodname_dotcom_the_website %}
Migrations from {% data variables.product.prodname_dotcom_the_website %} include {% data variables.product.prodname_ghe_cloud %}. This path includes adoption of {% data variables.product.prodname_emus %} or a move between managed enterprises.
* **Scope:** Source, history, and metadata
* **Tooling:** {% data variables.product.prodname_importer_proper_name %} or {% data variables.product.prodname_expert_services %}
* **More information:**
* [AUTOTITLE](/migrations/using-github-enterprise-importer)
* [{% data variables.product.prodname_expert_services %}](https://github.com/services/) website
* **Caveats:**
* {% data reusables.migrations.large-repositories-require-expert-services %}
* {% data reusables.migrations.migration-instructions-for-any-git-repository-to-githubcom %}
### Azure DevOps Services (Azure DevOps Cloud) to {% data variables.product.prodname_dotcom_the_website %}
* **Scope:** Source, history, and metadata
* **Tooling:** {% data variables.product.prodname_importer_proper_name %}
* **More information:** [AUTOTITLE](/migrations/using-github-enterprise-importer)
### Azure DevOps Server to {% data variables.product.prodname_dotcom_the_website %}
* **Scope:** Source, history, and metadata
* **Tooling:** Migration to Azure DevOps Services, then {% data variables.product.prodname_importer_proper_name %}
* **More information:**
* [Migrate data from Azure DevOps Server to Azure DevOps Services](https://learn.microsoft.com/en-us/azure/devops/migrate/migration-overview?view=azure-devops) in the Microsoft Docs
* [AUTOTITLE](/migrations/using-github-enterprise-importer)
* **Caveats:** If you can't migrate to Azure DevOps Services first, you must perform a "source and history" migration instead. For more information, [Migrations from any Git repository to {% data variables.product.prodname_dotcom_the_website %}](#any-git-repository-to-githubcom).
### Bitbucket Cloud (Bitbucket.org) to {% data variables.product.prodname_dotcom_the_website %}
* **Scope:** Source and history
* **Tooling:** Git CLI or {% data variables.product.prodname_importer %}
* **More information:**
* [AUTOTITLE](/migrations/importing-source-code/using-the-command-line-to-import-source-code/importing-an-external-git-repository-using-the-command-line)
* [AUTOTITLE]({% ifversion ghes %}/free-pro-team@latest{% endif %}/migrations/importing-source-code/using-github-importer/about-github-importer)
### Bitbucket Server or Bitbucket Data Center to {% data variables.product.prodname_dotcom_the_website %}
* **Scope:** Source, history, and metadata
* **Tooling:** {% data variables.product.prodname_importer_proper_name %}
* **More information:**
* [AUTOTITLE](/migrations/using-github-enterprise-importer)
* [{% data variables.product.prodname_expert_services %}](https://github.com/services/) website
* **Caveats:**
* {% data reusables.migrations.large-repositories-require-expert-services %}
* {% data reusables.migrations.migration-instructions-for-any-git-repository-to-githubcom %}
### GitLab to {% data variables.product.prodname_dotcom_the_website %}
* **Scope:** Source, history, and metadata
* **Tooling:** {% data variables.product.prodname_importer_proper_name %}
* **More information:** [{% data variables.product.prodname_expert_services %}](https://github.com/services/) website
* **Caveats:**
* If you want to migrate GitLab repositories to GitHub using {% data variables.product.prodname_importer_proper_name %}, please contact our {% data variables.product.prodname_expert_services %} team.
* {% data reusables.migrations.migration-instructions-for-any-git-repository-to-githubcom %}
### Any Git repository to {% data variables.product.prodname_dotcom_the_website %}
* **Scope:** Source and history
* **Tooling:** Git CLI or {% data variables.product.prodname_importer %} if the repository is accessible over the public internet
* **More information:**
* [AUTOTITLE](/migrations/importing-source-code/using-the-command-line-to-import-source-code/importing-an-external-git-repository-using-the-command-line)
* [AUTOTITLE]({% ifversion ghes %}/free-pro-team@latest{% endif %}/migrations/importing-source-code/using-github-importer/about-github-importer)
### Any Mercurial repository to {% data variables.product.prodname_dotcom_the_website %}
* **Scope:** Source and history
* **Tooling:** Mercurial, Git CLI, and Python
* **More information:** [AUTOTITLE](/migrations/importing-source-code/using-the-command-line-to-import-source-code/importing-a-mercurial-repository)
### Any Subversion (SVN) repository to {% data variables.product.prodname_dotcom_the_website %}
* **Scope:** Source and history
* **Tooling:** Subversion and Git CLI
* **More information:** [AUTOTITLE](/migrations/importing-source-code/using-the-command-line-to-import-source-code/importing-a-subversion-repository)
### Any Team Foundation Version Control (TFVC) repository to {% data variables.product.prodname_dotcom_the_website %}
* **Scope:** Source and history
* **Tooling:** Azure Repos, then Git CLI
* **More information:** [AUTOTITLE](/migrations/importing-source-code/using-the-command-line-to-import-source-code/importing-a-team-foundation-version-control-repository)
### Any Perforce repository to {% data variables.product.prodname_dotcom_the_website %}
* **Scope:** Source and history
* **Tooling:** `git-p4`, then Git CLI
* **More information:**
* [git-p4](https://git-scm.com/docs/git-p4) in the Git documentation
* [AUTOTITLE](/migrations/importing-source-code/using-the-command-line-to-import-source-code/adding-locally-hosted-code-to-github#importing-a-git-repository-with-the-command-line)
### Any other repository to {% data variables.product.prodname_dotcom_the_website %}
* **Scope:** Source snapshot
* **Tooling:** {% data variables.product.prodname_cli %} or Git CLI
* **More information:** [AUTOTITLE](/migrations/importing-source-code/using-the-command-line-to-import-source-code/adding-locally-hosted-code-to-github)
### {% data variables.enterprise.data_residency_site %} to {% data variables.product.prodname_dotcom_the_website %}
This path is not currently supported with our official tools. Please contact {% data variables.product.prodname_expert_services %}.
## Migrations to {% data variables.enterprise.data_residency_site %}
If you're migrating to {% data variables.enterprise.data_residency %}, your migration destination is {% data variables.enterprise.data_residency_site %}.
Migrations to {% data variables.enterprise.data_residency_site %} use similar tools as migrations to {% data variables.product.prodname_dotcom_the_website %}. However, the {% data variables.product.prodname_importer %} is not available.
Follow a link below to review the scope and tooling for your migration to {% data variables.enterprise.data_residency_site %}, plus any additional information or caveats.
* [{% data variables.product.prodname_ghe_server %} 3.4.1 or newer to {% data variables.enterprise.data_residency_site %}](#github-enterprise-server-341-or-newer-to-ghecom)
* [{% data variables.product.prodname_ghe_server %} 3.4.0 or older to {% data variables.enterprise.data_residency_site %}](#github-enterprise-server-340-or-older-to-ghecom)
* [{% data variables.product.prodname_dotcom_the_website %} to {% data variables.enterprise.data_residency_site %}](#githubcom-to-ghecom)
* [Azure DevOps Services (Azure DevOps Cloud) to {% data variables.enterprise.data_residency_site %}](#azure-devops-services-azure-devops-cloud-to-ghecom)
* [Azure DevOps Server to {% data variables.enterprise.data_residency_site %}](#azure-devops-server-to-ghecom)
* [Bitbucket Cloud (Bitbucket.org) to {% data variables.enterprise.data_residency_site %}](#bitbucket-cloud-bitbucketorg-to-ghecom)
* [Bitbucket Server or Bitbucket Data Center to {% data variables.enterprise.data_residency_site %}](#bitbucket-server-or-bitbucket-data-center-to-ghecom)
* [GitLab to {% data variables.enterprise.data_residency_site %}](#gitlab-to-ghecom)
* [Any Git repository to {% data variables.enterprise.data_residency_site %}](#any-git-repository-to-githubcom)
* [Any Mercurial repository to {% data variables.enterprise.data_residency_site %}](#any-mercurial-repository-to-ghecom)
* [Any Subversion (SVN) repository to {% data variables.enterprise.data_residency_site %}](#any-subversion-svn-repository-to-ghecom)
* [Any Team Foundation Version Control (TFVC) repository to {% data variables.enterprise.data_residency_site %}](#any-team-foundation-version-control-tfvc-repository-to-ghecom)
* [Any Perforce repository to {% data variables.enterprise.data_residency_site %}](#any-perforce-repository-to-ghecom)
* [Any other repository to {% data variables.enterprise.data_residency_site %}](#any-other-repository-to-ghecom)
### {% data variables.product.prodname_ghe_server %} 3.4.1 or newer to {% data variables.enterprise.data_residency_site %}
* **Scope:** Source, history, and metadata
* **Tooling:** {% data variables.product.prodname_importer_proper_name %}
* **More information:**
* [AUTOTITLE](/migrations/using-github-enterprise-importer)
* [{% data variables.product.prodname_expert_services %}](https://github.com/services/) website
* **Caveats:**
* {% data reusables.migrations.large-repositories-require-expert-services-ghecom %}
* {% data reusables.migrations.migration-instructions-for-any-git-repository-to-ghecom %}
### {% data variables.product.prodname_ghe_server %} 3.4.0 or older to {% data variables.enterprise.data_residency_site %}
* **Scope:** Source, history, and metadata
* **Tooling:** {% data variables.product.prodname_importer_proper_name %}
* **More information:**
* [AUTOTITLE](/migrations/using-github-enterprise-importer)
* [{% data variables.product.prodname_expert_services %}](https://github.com/services/) website
* **Caveats:**
* {% data reusables.migrations.large-repositories-require-expert-services-ghecom %}
* {% data reusables.migrations.migration-instructions-for-any-git-repository-to-ghecom %}
### {% data variables.product.prodname_dotcom_the_website %} to {% data variables.enterprise.data_residency_site %}
* **Scope:** Source, history, and metadata
* **Tooling:** {% data variables.product.prodname_importer_proper_name %} or {% data variables.product.prodname_expert_services %}
* **More information:**
* [AUTOTITLE](/migrations/using-github-enterprise-importer)
* [{% data variables.product.prodname_expert_services %}](https://github.com/services/) website
* **Caveats:**
* {% data reusables.migrations.large-repositories-require-expert-services-ghecom %}
* {% data reusables.migrations.migration-instructions-for-any-git-repository-to-ghecom %}
### Azure DevOps Services (Azure DevOps Cloud) to {% data variables.enterprise.data_residency_site %}
* **Scope:** Source, history, and metadata
* **Tooling:** {% data variables.product.prodname_importer_proper_name %}
* **More information:** [AUTOTITLE](/migrations/using-github-enterprise-importer)
### Azure DevOps Server to {% data variables.enterprise.data_residency_site %}
* **Scope:** Source, history, and metadata
* **Tooling:** Migration to Azure DevOps Services, then {% data variables.product.prodname_importer_proper_name %}
* **More information:**
* [Migrate data from Azure DevOps Server to Azure DevOps Services](https://learn.microsoft.com/en-us/azure/devops/migrate/migration-overview?view=azure-devops) in the Microsoft Docs
* [AUTOTITLE](/migrations/using-github-enterprise-importer)
* **Caveats:** If you can't migrate to Azure DevOps Services first, you must perform a "source and history" migration instead. For more information, see [Migrations from any Git repository to {% data variables.enterprise.data_residency_site %}](#any-git-repository-to-githubcom).
### Bitbucket Cloud (Bitbucket.org) to {% data variables.enterprise.data_residency_site %}
* **Scope:** Source and history
* **Tooling:** Git CLI
* **More information:**
* [AUTOTITLE](/migrations/importing-source-code/using-the-command-line-to-import-source-code/importing-an-external-git-repository-using-the-command-line)
### Bitbucket Server or Bitbucket Data Center to {% data variables.enterprise.data_residency_site %}
* **Scope:** Source, history, and metadata
* **Tooling:** {% data variables.product.prodname_importer_proper_name %}
* **More information:**
* [AUTOTITLE](/migrations/using-github-enterprise-importer)
* [{% data variables.product.prodname_expert_services %}](https://github.com/services/) website
* **Caveats:**
* {% data reusables.migrations.large-repositories-require-expert-services-ghecom %}
* {% data reusables.migrations.migration-instructions-for-any-git-repository-to-ghecom %}
### GitLab to {% data variables.enterprise.data_residency_site %}
* **Scope:** Source, history, and metadata
* **Tooling:** Contact {% data variables.product.prodname_expert_services %}
* **More information:** [{% data variables.product.prodname_expert_services %}](https://github.com/services/) website
* **Caveats:**
* {% data reusables.migrations.migration-instructions-for-any-git-repository-to-ghecom %}
### Any Git repository to {% data variables.enterprise.data_residency_site %}
* **Scope:** Source and history
* **Tooling:** Git CLI
* **More information:**
* [AUTOTITLE](/migrations/importing-source-code/using-the-command-line-to-import-source-code/importing-an-external-git-repository-using-the-command-line)
### Any Mercurial repository to {% data variables.enterprise.data_residency_site %}
* **Scope:** Source and history
* **Tooling:** Mercurial, Git CLI, and Python
* **More information:** [AUTOTITLE](/migrations/importing-source-code/using-the-command-line-to-import-source-code/importing-a-mercurial-repository)
### Any Subversion (SVN) repository to {% data variables.enterprise.data_residency_site %}
* **Scope:** Source and history
* **Tooling:** Subversion and Git CLI
* **More information:** [AUTOTITLE](/migrations/importing-source-code/using-the-command-line-to-import-source-code/importing-a-subversion-repository)
### Any Team Foundation Version Control (TFVC) repository to {% data variables.enterprise.data_residency_site %}
* **Scope:** Source and history
* **Tooling:** Azure Repos, then Git CLI
* **More information:** [AUTOTITLE](/migrations/importing-source-code/using-the-command-line-to-import-source-code/importing-a-team-foundation-version-control-repository)
### Any Perforce repository to {% data variables.enterprise.data_residency_site %}
* **Scope:** Source and history
* **Tooling:** `git-p4`, then Git CLI
* **More information:**
* [git-p4](https://git-scm.com/docs/git-p4) in the Git documentation
* [AUTOTITLE](/migrations/importing-source-code/using-the-command-line-to-import-source-code/adding-locally-hosted-code-to-github#importing-a-git-repository-with-the-command-line)
### Any other repository to {% data variables.enterprise.data_residency_site %}
* **Scope:** Source snapshot
* **Tooling:** {% data variables.product.prodname_cli %} or Git CLI
* **More information:** [AUTOTITLE](/migrations/importing-source-code/using-the-command-line-to-import-source-code/adding-locally-hosted-code-to-github)
## Migrations to {% data variables.product.prodname_ghe_server %}
You can review the scope and tooling for your migration to {% data variables.product.prodname_ghe_server %}, including any additional information or caveats.
* [{% data variables.product.prodname_dotcom_the_website %} to {% data variables.product.prodname_ghe_server %}](#githubcom-to-github-enterprise-server)
* [{% data variables.product.prodname_ghe_server %} to {% data variables.product.prodname_ghe_server %}](#github-enterprise-server-to-github-enterprise-server)
* [Azure DevOps to {% data variables.product.prodname_ghe_server %}](#azure-devops-to-github-enterprise-server)
* [Bitbucket Cloud (Bitbucket.org) to {% data variables.product.prodname_ghe_server %}](#bitbucket-cloud-bitbucketorg-to-github-enterprise-server)
* [Bitbucket Server or Bitbucket Data Center to {% data variables.product.prodname_ghe_server %}](#bitbucket-server-or-bitbucket-data-center-to-github-enterprise-server)
* [GitLab to {% data variables.product.prodname_ghe_server %}](#gitlab-to-github-enterprise-server)
* [Any Git repository to {% data variables.product.prodname_ghe_server %}](#any-git-repository-to-github-enterprise-server)
* [Any Mercurial repository to {% data variables.product.prodname_ghe_server %}](#any-mercurial-repository-to-github-enterprise-server)
* [Any Subversion (SVN) repository to {% data variables.product.prodname_ghe_server %}](#any-subversion-svn-repository-to-github-enterprise-server)
* [Any Team Foundation Version Control (TFVC) repository to {% data variables.product.prodname_ghe_server %}](#any-team-foundation-version-control-tfvc-repository-to-github-enterprise-server)
* [Any Perforce repository to {% data variables.product.prodname_ghe_server %}](#any-perforce-repository-to-github-enterprise-server)
* [Any other repository to {% data variables.product.prodname_ghe_server %}](#any-other-repository-to-github-enterprise-server)
* [{% data variables.enterprise.data_residency_site %} to {% data variables.product.prodname_ghe_server %}](#ghecom-to-github-enterprise-server)
### {% data variables.product.prodname_dotcom_the_website %} to {% data variables.product.prodname_ghe_server %}
Migrations from {% data variables.product.prodname_dotcom_the_website %} include {% data variables.product.prodname_ghe_cloud %}.
* **Scope:** Source, history, and metadata
* **Tooling:** Organization migrations API, then `ghe-migrator`
* **More information:**
* [AUTOTITLE](/enterprise-server/migrations/using-ghe-migrator/exporting-migration-data-from-githubcom)
* [AUTOTITLE](/enterprise-server/migrations/using-ghe-migrator/migrating-data-to-github-enterprise-server)
### {% data variables.product.prodname_ghe_server %} to {% data variables.product.prodname_ghe_server %}
* **Scope:** Source, history, and metadata
* **Tooling:** Organization migrations API, then `ghe-migrator`
* **More information:**
* [AUTOTITLE](/enterprise-server/migrations/using-ghe-migrator/exporting-migration-data-from-github-enterprise-server)
* [AUTOTITLE](/enterprise-server/migrations/using-ghe-migrator/migrating-data-to-github-enterprise-server)
### Azure DevOps to {% data variables.product.prodname_ghe_server %}
* **Scope:** Source and history
* **Tooling:** Git CLI
* **More information:** [AUTOTITLE](/migrations/importing-source-code/using-the-command-line-to-import-source-code/importing-an-external-git-repository-using-the-command-line)
### Bitbucket Cloud (Bitbucket.org) to {% data variables.product.prodname_ghe_server %}
* **Scope:** Source and history
* **Tooling:** Git CLI
* **More information:** [AUTOTITLE](/migrations/importing-source-code/using-the-command-line-to-import-source-code/importing-an-external-git-repository-using-the-command-line)
### Bitbucket Server or Bitbucket Data Center to {% data variables.product.prodname_ghe_server %}
* **Scope:** Source, history, and metadata
* **Tooling:** `bbs-exporter` (expert-led migrations only), then `ghe-migrator`
* **More information:**
* [{% data variables.product.prodname_expert_services %}](https://github.com/services/) website
* [AUTOTITLE](/enterprise-server/migrations/using-ghe-migrator/migrating-data-to-github-enterprise-server)
* **Caveats:** {% data reusables.migrations.migration-instructions-for-any-git-repository-to-ghes %}
### GitLab to {% data variables.product.prodname_ghe_server %}
* **Scope:** Source, history, and metadata
* **Tooling:** `gl-exporter` (expert-led migrations only), then `ghe-migrator`
* **More information:**
* [{% data variables.product.prodname_expert_services %}](https://github.com/services/) website
* [AUTOTITLE](/enterprise-server/migrations/using-ghe-migrator/migrating-data-to-github-enterprise-server)
* **Caveats:** {% data reusables.migrations.migration-instructions-for-any-git-repository-to-ghes %}
### Any Git repository to {% data variables.product.prodname_ghe_server %}
* **Scope:** Source and history
* **Tooling:** Git CLI
* **More information:** [AUTOTITLE](/enterprise-server/migrations/importing-source-code/using-the-command-line-to-import-source-code/importing-an-external-git-repository-using-the-command-line)
### Any Mercurial repository to {% data variables.product.prodname_ghe_server %}
* **Scope:** Source and history
* **Tooling:** Mercurial, Git CLI, and Python
* **More information:** [AUTOTITLE](/enterprise-server/migrations/importing-source-code/using-the-command-line-to-import-source-code/importing-a-mercurial-repository)
### Any Subversion (SVN) repository to {% data variables.product.prodname_ghe_server %}
* **Scope:** Source and history
* **Tooling:** Subversion and Git CLI
* **More information:** [AUTOTITLE](/enterprise-server/migrations/importing-source-code/using-the-command-line-to-import-source-code/importing-a-subversion-repository)
### Any Team Foundation Version Control (TFVC) repository to {% data variables.product.prodname_ghe_server %}
* **Scope:** Source and history
* **Tooling:** Azure Repos, then Git CLI
* **More information:** [AUTOTITLE](/enterprise-server/migrations/importing-source-code/using-the-command-line-to-import-source-code/importing-a-team-foundation-version-control-repository)
### Any Perforce repository to {% data variables.product.prodname_ghe_server %}
* **Scope:** Source and history
* **Tooling:** `git-p4`, then Git CLI
* **More information:**
* [git-p4](https://git-scm.com/docs/git-p4) in the Git documentation
* [AUTOTITLE](/enterprise-server/migrations/importing-source-code/using-the-command-line-to-import-source-code/adding-locally-hosted-code-to-github#importing-a-git-repository-with-the-command-line)
### Any other repository to {% data variables.product.prodname_ghe_server %}
* **Scope:** Source snapshot
* **Tooling:** {% data variables.product.prodname_cli %} or Git CLI
* **More information:** [AUTOTITLE](/migrations/importing-source-code/using-the-command-line-to-import-source-code/adding-locally-hosted-code-to-github)
### {% data variables.enterprise.data_residency_site %} to {% data variables.product.prodname_ghe_server %}
This path is not currently supported with our official tools. Please contact {% data variables.product.prodname_expert_services %}.