关于迁移到 GitHub
的路径
关于迁移
若要规划迁移,请考虑目的地和源。 这些注意事项可以帮助确定迁移的路径。对于某些迁移路径,我们提供专用工具,帮助你迁移源代码、历史记录和元数据。 对于其他情况,您需要执行更简单的“源和历史记录”或“源快照”迁移。
某些迁移路径需要使用只有专家引导式迁移才提供的工具。 有关详细信息,请联系您的客户经理,通过 GitHub 的销售团队,或查看 GitHub Expert Services 网站。
根据我们的建议,我们会假设您希望尽可能高的保真度,包括源、历史记录和元数据。
迁移到 GitHub.com
可以查看迁移到 GitHub.com(包括迁移到 GitHub Enterprise Cloud)的范围和所用工具。 还可以查看其他信息或注意事项。
-
[从 GitHub Enterprise Server 3.4.1 或更新版本到 GitHub.com](#github-enterprise-server-341-or-newer-to-githubcom) -
[从 GitHub Enterprise Server 3.4.0 或更旧版本到 GitHub.com](#github-enterprise-server-340-or-older-to-githubcom) -
[从 GitHub.com 到 GitHub.com](#githubcom-to-githubcom) -
[从 Azure DevOps Services (Azure DevOps Cloud) 到 GitHub.com](#azure-devops-services-azure-devops-cloud-to-githubcom) -
[从 Azure DevOps Server 到 GitHub.com](#azure-devops-server-to-githubcom) -
[Bitbucket Cloud (Bitbucket.org) 到 GitHub.com](#bitbucket-cloud-bitbucketorg-to-githubcom) -
[从 Bitbucket Server 或 Bitbucket Data Center 到 GitHub.com](#bitbucket-server-or-bitbucket-data-center-to-githubcom) -
[从 GitLab 到 GitHub.com](#gitlab-to-githubcom) -
[到 GitHub.com 的任意 Git 存储库](#any-git-repository-to-githubcom) -
[将任意 Mercurial 存储库迁移到 GitHub.com](#any-mercurial-repository-to-githubcom) -
[将任意 Subversion (SVN) 存储库迁移到 GitHub.com](#any-subversion-svn-repository-to-githubcom) -
[任意 Team Foundation 版本控制 (TFVC) 存储库至 GitHub.com](#any-team-foundation-version-control-tfvc-repository-to-githubcom) -
[任意 Perforce 存储库迁移至 GitHub.com](#any-perforce-repository-to-githubcom) -
[从任意其他存储库到 GitHub.com](#any-other-repository-to-githubcom) -
[将 GHE.com 迁移到 GitHub.com](#ghecom-to-githubcom)
从 GitHub Enterprise Server 3.4.1 或更新版本到 GitHub.com
- 范围****:源、历史记录和元数据
- 工具****:GitHub Enterprise Importer
-
* 使用 GitHub Enterprise Importer * GitHub Expert Services 网站**详细信息:** - 注意:****
- 对于 git 或元数据存档大于 40 GB 的存储库,请考虑使用 GitHub Expert Services 来帮助使大型存储库符合 Enterprise Cloud Importer 的限制要求。
- 如果专家引导式迁移不适合,可以改为对受影响的存储库执行“源和历史记录”迁移。 有关详细信息,请参阅从任意 Git 仓库迁移到 GitHub.com。
从版本 3.4.0 或更旧的 GitHub Enterprise Server 迁移到 GitHub.com
- 范围****:源、历史记录和元数据
- 工具****:GitHub Enterprise Importer
-
* 使用 GitHub Enterprise Importer * GitHub Expert Services 网站**详细信息:** - 提示事项:
- 大型存储库需要专家服务。
- 如果专家引导式迁移不适合,可以改为对受影响的存储库执行“源和历史记录”迁移。 有关详细信息,请参阅从任意 Git 仓库迁移到 GitHub.com。
从 GitHub.com 到 GitHub.com
从 GitHub.com 迁移的项目包括 GitHub Enterprise Cloud。 此路径包括采用 Enterprise Managed Users 或在托管企业间迁移。
- 范围****:源、历史记录和元数据
- 工具:
或 -
* 使用 GitHub Enterprise Importer * GitHub Expert Services 网站**详细信息:** - 提示事项:
- 对于 git 或元数据存档大于 40 GB 的存储库,请考虑使用 GitHub Expert Services 来帮助使大型存储库符合 Enterprise Cloud Importer 的限制要求。
- 如果专家引导式迁移不适合,可以改为对受影响的存储库执行“源和历史记录”迁移。 有关详细信息,请参阅从任意 Git 仓库迁移到 GitHub.com。
从 Azure DevOps 服务 (Azure DevOps 云) 迁移到 GitHub.com
从 Azure DevOps Server 到 GitHub.com
- 范围****:源、历史记录和元数据
- 工具****:先迁移到 Azure DevOps Services,然后使用 GitHub Enterprise Importer
-
* 在 Microsoft Docs 中将数据从 Azure DevOps Server 迁移到 Azure DevOps Services * 使用 GitHub Enterprise Importer**详细信息:** - 注意****:如果不能先迁移到 Azure DevOps Services,则必须改为执行“源和历史记录”迁移。 有关详细信息,请参阅从任意 Git 存储库迁移到 GitHub.com。
从 Bitbucket Cloud (Bitbucket.org) 到 GitHub.com
- 范围 **: **来源及历史
-
**工具**:Git CLI 或 GitHub Importer -
* 使用命令行导入外部 Git 存储库 * 关于 GitHub 导入工具**详细信息:**
从 Bitbucket Server 或 Bitbucket Data Center 到 GitHub.com
- 范围****:源、历史记录和元数据
- 工具****:GitHub Enterprise Importer
-
* 使用 GitHub Enterprise Importer * GitHub Expert Services 网站**详细信息:** - 提示事项:
- 对于 git 或元数据存档大于 40 GB 的存储库,请考虑使用 GitHub Expert Services 来帮助使大型存储库符合 Enterprise Cloud Importer 的限制要求。
- 如果专家引导式迁移不适合,可以改为对受影响的存储库执行“源和历史记录”迁移。 有关详细信息,请参阅从任意 Git 仓库迁移到 GitHub.com。
从 GitLab 到 GitHub.com
- 范围****:源、历史记录和元数据
- 工具****:GitHub Enterprise Importer
- 详细信息****:GitHub Expert Services 网站
- 提示事项:
- 如果要使用 GitHub Enterprise Importer 将 GitLab 仓库迁移到 GitHub,请联系 GitHub Expert Services 团队。
- 如果专家引导式迁移不适合,可以改为对受影响的存储库执行“源和历史记录”迁移。 有关详细信息,请参阅从任意 Git 仓库迁移到 GitHub.com。
从任意 Git 存储库导入到 GitHub.com
-
**范围:** 源和历史记录 -
**工具**:Git CLI 或 GitHub Importer(如果存储库可通过公共 Internet 访问) -
* 使用命令行导入外部 Git 存储库 * 关于 GitHub 导入工具**详细信息:**
任意 Mercurial 存储库迁移到 GitHub.com
从任意 Subversion (SVN) 版本库迁移到 GitHub.com
任意 Team Foundation 版本控制 (TFVC) 存储库到 GitHub.com 的连接
从任意 Perforce 存储库到 GitHub.com
-
**范围:** 来源和历史记录 -
** **工具:`git-p4`,然后使用 Git CLI -
**详细信息:**- Git 文档中的 git-p4
-
[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)
从任意其他存储库到 GitHub.com
从 GHE.com 迁移到 GitHub.com
我们的官方工具目前不支持此路径。 请联系 GitHub Expert Services。
迁移到 GHE.com
如果迁移到 具有数据驻留的 GitHub Enterprise Cloud,则迁移目标是 GHE.com。
迁移到 GHE.com 使用的工具与迁移到 GitHub.com 使用的工具类似。 但是,GitHub Importer 不可用。
点击下面的链接,查看迁移到 GHE.com 的范围和工具,以及任何其他信息或注意事项。
-
[将 GitHub Enterprise Server 3.4.1 或更高版本迁移到 GHE.com](#github-enterprise-server-341-or-newer-to-ghecom) -
[从 GitHub Enterprise Server 3.4.0 或更低版本迁移到 GHE.com](#github-enterprise-server-340-or-older-to-ghecom) -
[从 GitHub.com 迁移到 GHE.com](#githubcom-to-ghecom) -
[从 Azure DevOps Services (Azure DevOps Cloud) 迁移到 GHE.com](#azure-devops-services-azure-devops-cloud-to-ghecom) -
[从 Azure DevOps Server 迁移到 GHE.com](#azure-devops-server-to-ghecom) -
[从 Bitbucket Cloud (Bitbucket.org) 迁移到 GHE.com](#bitbucket-cloud-bitbucketorg-to-ghecom) -
[从 Bitbucket Server 或 Bitbucket Data Center 迁移到 GHE.com](#bitbucket-server-or-bitbucket-data-center-to-ghecom) -
[将 GitLab 转移到 GHE.com](#gitlab-to-ghecom) -
[任意 Git 存储库迁移到 GHE.com](#any-git-repository-to-githubcom) -
[将任意 Mercurial 存储库迁移到 GHE.com](#any-mercurial-repository-to-ghecom) -
[从任意 Subversion (SVN) 存储库迁移到 GHE.com](#any-subversion-svn-repository-to-ghecom) -
[从任意 Team Foundation 版本控制 (TFVC) 存储库迁移到 GHE.com](#any-team-foundation-version-control-tfvc-repository-to-ghecom) -
[从任意 Perforce 存储库迁移到 GHE.com](#any-perforce-repository-to-ghecom) -
[将任意其他存储库迁移至 GHE.com](#any-other-repository-to-ghecom)
从 GitHub Enterprise Server 3.4.1 或更高版本迁移到 GHE.com
- 范围****:源、历史记录和元数据
- 工具****:GitHub Enterprise Importer
-
* 使用 GitHub Enterprise Importer * GitHub Expert Services 网站**详细信息:** - 提示事项:
*
- 数据源占位符参考中的 Git 存储库至 GitHub Enterprise Cloud (GHE) 迁移说明
从 GitHub Enterprise Server 3.4.0 或更低版本迁移到 GHE.com
- 范围****:源、历史记录和元数据
- 工具****:GitHub Enterprise Importer
-
* 使用 GitHub Enterprise Importer * GitHub Expert Services 网站**详细信息:** - 提示事项:
*
- 如果专家引导式迁移不适合,可以改为对受影响的存储库执行“源和历史记录”迁移。 有关详细信息,请参阅从任意 Git 存储库迁移到 GHE.com。
从 GitHub.com 迁移到 GHE.com
- 范围****:源、历史记录和元数据
- 工具:
或 -
* 使用 GitHub Enterprise Importer * GitHub Expert Services 网站**详细信息:** - 提示事项:
*
- 如果专家引导式迁移不适合,可以改为对受影响的存储库执行“源和历史记录”迁移。 有关详细信息,请参阅从任意 Git 存储库迁移到 GHE.com。
将 Azure DevOps Services (Azure DevOps Cloud) 迁移至 GHE.com
从 Azure DevOps Server 迁移到 GHE.com
- 范围****:源、历史记录和元数据
- 工具****:先迁移到 Azure DevOps Services,然后使用 GitHub Enterprise Importer
-
* 在 Microsoft Docs 中将数据从 Azure DevOps Server 迁移到 Azure DevOps Services * 使用 GitHub Enterprise Importer**详细信息:** - 注意****:如果不能先迁移到 Azure DevOps Services,则必须改为执行“源和历史记录”迁移。 有关详细信息,请参阅从任意 Git 存储库迁移到 GHE.com。
从 Bitbucket Cloud (Bitbucket.org) 迁移到 GHE.com
-
**范围:** 来源和历史记录 -
** **工具:Git CLI -
* 使用命令行导入外部 Git 存储库**详细信息:**
从 Bitbucket Server 或 Bitbucket Data Center 迁移到 GHE.com
- 范围****:源、历史记录和元数据
- 工具****:GitHub Enterprise Importer
-
* 使用 GitHub Enterprise Importer * GitHub Expert Services 网站**详细信息:** - 提示事项:
- 大型存储库需要专业服务-ghecom
- 如果专家引导式迁移不适合,可以改为对受影响的存储库执行“源和历史记录”迁移。 有关详细信息,请参阅从任意 Git 存储库迁移到 GHE.com。
从 GitLab 迁移到 GHE.com
- 范围****:源、历史记录和元数据
-
**工具**:联系 GitHub Expert Services - 详细信息****:GitHub Expert Services 网站
- 提示事项:
- 如果专家引导式迁移不适合,可以改为对受影响的存储库执行“源和历史记录”迁移。 有关详细信息,请参阅从任意 Git 存储库迁移到 GHE.com。
可将任意 Git 存储库连接至 GHE.com
-
**范围:** 来源和历史记录 -
** **工具:Git CLI -
* 使用命令行导入外部 Git 存储库**详细信息:**
任意 Mercurial 存储库迁移至 GHE.com
从任意 Subversion (SVN) 存储库迁移到 GHE.com
从任意 Team Foundation 版本控制 (TFVC) 存储库迁移到 GHE.com
从任意 Perforce 存储库迁移到 GHE.com
-
**范围:** 来源和历史记录 -
** **工具:`git-p4`,然后使用 Git CLI -
**详细信息:**- Git 文档中的 git-p4
-
[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)
从任意其他存储库迁移到 GHE.com
迁移到 GitHub Enterprise Server
可以查看迁移到 GitHub Enterprise Server 的范围和所用工具,包括其他信息或注意事项。
-
[从 GitHub.com 到 GitHub Enterprise Server](#githubcom-to-github-enterprise-server) -
[从 GitHub Enterprise Server 到 GitHub Enterprise Server](#github-enterprise-server-to-github-enterprise-server) -
[将 Azure DevOps 迁移至 GitHub Enterprise Server](#azure-devops-to-github-enterprise-server) -
[从 Bitbucket Cloud (Bitbucket.org) 到 GitHub Enterprise Server](#bitbucket-cloud-bitbucketorg-to-github-enterprise-server) -
[从 Bitbucket Server 或 Bitbucket Data Center 到 GitHub Enterprise Server](#bitbucket-server-or-bitbucket-data-center-to-github-enterprise-server) -
[从 GitLab 到 GitHub Enterprise Server](#gitlab-to-github-enterprise-server) -
[将任意 Git 存储库连接到 GitHub Enterprise Server](#any-git-repository-to-github-enterprise-server) -
[任意 Mercurial 存储库到 GitHub Enterprise Server](#any-mercurial-repository-to-github-enterprise-server) -
[迁移任意 Subversion (SVN) 存储库到 GitHub Enterprise Server](#any-subversion-svn-repository-to-github-enterprise-server) -
[从任意 Team Foundation 版本控制 (TFVC) 库迁移到 GitHub Enterprise Server](#any-team-foundation-version-control-tfvc-repository-to-github-enterprise-server) - 从任何 Perforce 存储库迁移到 GitHub Enterprise Server
-
[从其他任何存储库传输到 GitHub Enterprise Server](#any-other-repository-to-github-enterprise-server) -
[从 GHE.com 迁移到 GitHub Enterprise Server](#ghecom-to-github-enterprise-server)
从 GitHub.com 到 GitHub Enterprise Server
从 GitHub.com 迁移的项目包括 GitHub Enterprise Cloud。
- 范围****:源、历史记录和元数据
-
** **工具:组织迁移 API,然后 `ghe-migrator` -
* 从 GitHub.com 导出迁移数据 * 将数据迁移到 GitHub Enterprise Server**详细信息:**
从 GitHub Enterprise Server 到 GitHub Enterprise Server
- 范围****:源、历史记录和元数据
-
** **工具:组织迁移 API,然后 `ghe-migrator` -
* 从 GitHub Enterprise Server 导出迁移数据 * 将数据迁移到 GitHub Enterprise Server**详细信息:**
从 Azure DevOps 转到 GitHub Enterprise Server
从 Bitbucket Cloud (Bitbucket.org) 到 GitHub Enterprise Server
从 Bitbucket Server 或 Bitbucket Data Center 迁移到 GitHub Enterprise Server
- 范围****:源、历史记录和元数据
-
** **工具:`bbs-exporter`(仅限专家引导式迁移),然后使用 `ghe-migrator` -
* GitHub Expert Services 网站 * 将数据迁移到 GitHub Enterprise Server**详细信息:** -
** **注意:如果专家引导式迁移不适合,可以改为对受影响的存储库执行“源和历史记录”迁移。 有关详细信息,请参阅[从任意 Git 仓库到 GitHub Enterprise Server](#any-git-repository-to-github-enterprise-server)。
从 GitLab 转到 GitHub Enterprise Server
- 范围****:源、历史记录和元数据
-
** **工具:`gl-exporter`(仅限专家引导式迁移),然后`ghe-migrator` -
* GitHub Expert Services 网站 * 将数据迁移到 GitHub Enterprise Server**详细信息:** -
** **注意:如果专家引导式迁移不适合,可以改为对受影响的存储库执行“源和历史记录”迁移。 有关详细信息,请参阅[从任意 Git 仓库到 GitHub Enterprise Server](#any-git-repository-to-github-enterprise-server)。
从任意 Git 存储库到 GitHub Enterprise Server
将任何 Mercurial 存储库迁移到 GitHub Enterprise Server
从任意 Subversion (SVN) 存储库到 GitHub Enterprise Server
从任意 Team Foundation Version Control (TFVC) 存储库到 GitHub Enterprise Server
任意 Perforce 存储库到 GitHub Enterprise Server
-
**范围:** 来源和历史记录 -
** **工具:`git-p4`,然后使用 Git CLI -
**详细信息:**- Git 文档中的 git-p4
-
[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)
任意其他存储库传输到 GitHub Enterprise Server
从 GHE.com 迁移到 GitHub Enterprise Server
我们的官方工具目前不支持此路径。 请联系 GitHub Expert Services。