# 迁移文档

如果您要从其他代码托管平台迁移到 GitHub，或者在 GitHub 产品之间迁移，请了解如何使用我们的迁移工具将您的工作带过去。

## Recommended

* [规划到 GitHub 的迁移](/zh/enterprise-server@3.22/migrations/overview/planning-your-migration-to-github)

  规划和执行成功迁移到产品或产品之间的GitHub迁移GitHub。

* [关于 GitHub 的迁移工具](/zh/enterprise-server@3.22/migrations/overview/about-githubs-migration-tooling)

  GitHub 提供了各种不同的工具选项来帮助迁移到 GitHub 以及在 GitHub 产品之间迁移。

* [迁移到 GitHub 的路径](/zh/enterprise-server@3.22/migrations/overview/migration-paths-to-github)

  请查看从其他产品迁移到GitHub，或在GitHub产品之间迁移的路径概述。

* [将本地托管代码添加到 GitHub](/zh/enterprise-server@3.22/migrations/importing-source-code/using-the-command-line-to-import-source-code/adding-locally-hosted-code-to-github)

  如果代码存储在本地计算机上并由 Git 跟踪或未由任何版本控制系统 (VCS) 跟踪，你可以使用 GitHub 或 Git 命令将代码导入 GitHub CLI。

* [关于 GitHub Enterprise Importer](/zh/enterprise-server@3.22/migrations/using-github-enterprise-importer/understanding-github-enterprise-importer/about-github-enterprise-importer)

  借助 GitHub Enterprise Importer，可以将企业从各种源迁移到 GitHub Enterprise Cloud。

* [在 GitHub 产品之间迁移的概述](/zh/enterprise-server@3.22/migrations/using-github-enterprise-importer/migrating-between-github-products/overview-of-a-migration-between-github-products)

  了解如何借助 GitHub 完成从一种 GitHub Enterprise Importer 产品迁移到另一种产品的整个过程，从规划到实施，再到完成后续任务。

* [从 Bitbucket Server 迁移到 GitHub Enterprise Cloud 的概述](/zh/enterprise-server@3.22/migrations/using-github-enterprise-importer/migrating-from-bitbucket-server-to-github-enterprise-cloud/overview-of-a-migration-from-bitbucket-server-to-github-enterprise-cloud)

  了解使用 GitHub 从 Bitbucket Server 迁移到 GitHub Enterprise Importer 的过程（从计划、实现到完成后续任务）。

## Links

### Getting started

* [关于 GitHub 的迁移工具](/zh/enterprise-server@3.22/migrations/overview/about-githubs-migration-tooling)

  GitHub 提供了各种不同的工具选项来帮助迁移到 GitHub 以及在 GitHub 产品之间迁移。

* [规划到 GitHub 的迁移](/zh/enterprise-server@3.22/migrations/overview/planning-your-migration-to-github)

  规划和执行成功迁移到产品或产品之间的GitHub迁移GitHub。

## Articles

* [关于 GitHub 的迁移工具](/zh/enterprise-server@3.22/migrations/overview/about-githubs-migration-tooling)

  GitHub 提供了各种不同的工具选项来帮助迁移到 GitHub 以及在 GitHub 产品之间迁移。

* [关于 GitHub 产品之间的迁移](/zh/enterprise-server@3.22/migrations/overview/migrations-within-github)

  为什么我应该在 GitHub 平台之间切换，我需要考虑些什么？

* [规划到 GitHub 的迁移](/zh/enterprise-server@3.22/migrations/overview/planning-your-migration-to-github)

  规划和执行成功迁移到产品或产品之间的GitHub迁移GitHub。

* [迁移到 GitHub 的路径](/zh/enterprise-server@3.22/migrations/overview/migration-paths-to-github)

  请查看从其他产品迁移到GitHub，或在GitHub产品之间迁移的路径概述。

* [关于锁定的存储库](/zh/enterprise-server@3.22/migrations/overview/about-locked-repositories)

  可以锁定存储库以防止更改，通常为了进行迁移。

* [模特和用户活动](/zh/enterprise-server@3.22/migrations/overview/mannequins-and-user-activity)

  Mannequins 是用户可以在迁移后回收的占位符标识。

* [关于使用命令行导入源代码](/zh/enterprise-server@3.22/migrations/importing-source-code/using-the-command-line-to-import-source-code/about-source-code-imports-using-the-command-line)

  可以使用命令行工具将源代码及其修订历史记录导入 GitHub。

* [将本地托管代码添加到 GitHub](/zh/enterprise-server@3.22/migrations/importing-source-code/using-the-command-line-to-import-source-code/adding-locally-hosted-code-to-github)

  如果代码存储在本地计算机上并由 Git 跟踪或未由任何版本控制系统 (VCS) 跟踪，你可以使用 GitHub 或 Git 命令将代码导入 GitHub CLI。

* [使用命令行导入外部 Git 存储库](/zh/enterprise-server@3.22/migrations/importing-source-code/using-the-command-line-to-import-source-code/importing-an-external-git-repository-using-the-command-line)

  如果在 Git 存储库中跟踪了源代码，可以在命令行上使用 Git 导入存储库。

* [导入 Subversion 存储库](/zh/enterprise-server@3.22/migrations/importing-source-code/using-the-command-line-to-import-source-code/importing-a-subversion-repository)

  可以通过将存储库转换为 Git，然后将 Git 存储库推送到 GitHub，从 Subversion 导入存储库。

* [导入 Mercurial 存储库](/zh/enterprise-server@3.22/migrations/importing-source-code/using-the-command-line-to-import-source-code/importing-a-mercurial-repository)

  可以通过将存储库转换为 Git，然后将 Git 存储库推送到 GitHub，从 Mercurial 导入存储库。

* [导入 Team Foundation 版本控制存储库](/zh/enterprise-server@3.22/migrations/importing-source-code/using-the-command-line-to-import-source-code/importing-a-team-foundation-version-control-repository)

  可以通过将存储库转换为 Git，然后将 Git 存储库推送到 GitHub，从 Team Foundation 版本控制 (TFVC) 导入存储库。

* [借助管理 shell 从其他版本控制系统导入](/zh/enterprise-server@3.22/migrations/importing-source-code/using-the-command-line-to-import-source-code/importing-from-other-version-control-systems-with-the-administrative-shell)

  使用管理 shell，可以将 Subversion、Mercurial 和 Team Foundation Version Control 中的内容导入到 GitHub Enterprise Server 上的 Git 存储库中。

* [关于 GitHub Enterprise Importer](/zh/enterprise-server@3.22/migrations/using-github-enterprise-importer/understanding-github-enterprise-importer/about-github-enterprise-importer)

  借助 GitHub Enterprise Importer，可以将企业从各种源迁移到 GitHub Enterprise Cloud。

* [关于从 Bitbucket Server 迁移到 GitHub Enterprise Cloud](/zh/enterprise-server@3.22/migrations/using-github-enterprise-importer/migrating-from-bitbucket-server-to-github-enterprise-cloud/about-migrations-from-bitbucket-server-to-github-enterprise-cloud)

  了解 GitHub Enterprise Importer 可以迁移的数据。

* [从 Bitbucket Server 迁移到 GitHub Enterprise Cloud 的概述](/zh/enterprise-server@3.22/migrations/using-github-enterprise-importer/migrating-from-bitbucket-server-to-github-enterprise-cloud/overview-of-a-migration-from-bitbucket-server-to-github-enterprise-cloud)

  了解使用 GitHub 从 Bitbucket Server 迁移到 GitHub Enterprise Importer 的过程（从计划、实现到完成后续任务）。

* [管理从 Bitbucket Server 迁移的访问权限](/zh/enterprise-server@3.22/migrations/using-github-enterprise-importer/migrating-from-bitbucket-server-to-github-enterprise-cloud/managing-access-for-a-migration-from-bitbucket-server)

  在使用 GitHub Enterprise Importer之前，请确保对迁移的源和目标具有适当的访问权限。

* [将存储库从 Bitbucket Server 迁移到 GitHub Enterprise Cloud](/zh/enterprise-server@3.22/migrations/using-github-enterprise-importer/migrating-from-bitbucket-server-to-github-enterprise-cloud/migrating-repositories-from-bitbucket-server-to-github-enterprise-cloud)

  您可以使用 GitHub Enterprise Cloud 将存储库从 Bitbucket Server 迁移到 GitHub CLI。

* [关于使用 GitHub Enterprise Importer 在 GitHub 产品之间迁移](/zh/enterprise-server@3.22/migrations/using-github-enterprise-importer/migrating-between-github-products/about-migrations-between-github-products)

  了解哪些数据 GitHub Enterprise Importer 可以迁移在 GitHub 产品之间。

* [在 GitHub 产品之间迁移的概述](/zh/enterprise-server@3.22/migrations/using-github-enterprise-importer/migrating-between-github-products/overview-of-a-migration-between-github-products)

  了解如何借助 GitHub 完成从一种 GitHub Enterprise Importer 产品迁移到另一种产品的整个过程，从规划到实施，再到完成后续任务。

* [管理 GitHub 产品之间迁移的访问权限](/zh/enterprise-server@3.22/migrations/using-github-enterprise-importer/migrating-between-github-products/managing-access-for-a-migration-between-github-products)

  在使用 GitHub Enterprise Importer之前，请确保对迁移的源和目标具有适当的访问权限。

* [将存储库从 GitHub Enterprise Server 迁移到 GitHub Enterprise Cloud](/zh/enterprise-server@3.22/migrations/using-github-enterprise-importer/migrating-between-github-products/migrating-repositories-from-github-enterprise-server-to-github-enterprise-cloud)

  您可以使用GitHub Enterprise Server或 API 将仓库从GitHub Enterprise Cloud迁移到GitHub CLI。

* [将存储库从 GitHub.com 迁移到 GitHub Enterprise Cloud](/zh/enterprise-server@3.22/migrations/using-github-enterprise-importer/migrating-between-github-products/migrating-repositories-from-githubcom-to-github-enterprise-cloud)

  您可以使用 GitHub.com 或 GraphQL API，将仓库从 GitHub Enterprise Cloud 迁移到 GitHub CLI。

* [将组织从 GitHub.com 迁移到 GitHub Enterprise Cloud](/zh/enterprise-server@3.22/migrations/using-github-enterprise-importer/migrating-between-github-products/migrating-organizations-from-githubcom-to-github-enterprise-cloud)

  可以使用 GitHub.com 或 GraphQL API 将组织从 GitHub Enterprise Cloud 迁移到 GitHub CLI。

* [访问 GitHub Enterprise Importer 的迁移日志](/zh/enterprise-server@3.22/migrations/using-github-enterprise-importer/completing-your-migration-with-github-enterprise-importer/accessing-your-migration-logs-for-github-enterprise-importer)

  运行迁移后应查看迁移日志，检查是否存在未按预期迁移的数据。

* [回收 GitHub Enterprise Importer 的模型](/zh/enterprise-server@3.22/migrations/using-github-enterprise-importer/completing-your-migration-with-github-enterprise-importer/reclaiming-mannequins-for-github-enterprise-importer)

  迁移后，可以将占位符标识（模型）的历史记录分配给组织成员。

* [关于从 GitHub Enterprise Server 到 GHE.com 的实时迁移](/zh/enterprise-server@3.22/migrations/elm/about-live-migrations)

  实时迁移如何最大程度地减少开发人员的停机时间？

* [准备从 GitHub Enterprise Server 到 GHE.com 的实时迁移](/zh/enterprise-server@3.22/migrations/elm/prepare-for-your-migration)

  开始 Enterprise Live Migrations 之前应该考虑的关键问题。

* [使用企业实时迁移迁移存储库](/zh/enterprise-server@3.22/migrations/elm/migrate-your-repository)

  在停机时间最短的情况下，从GitHub Enterprise Server迁移到GHE.com。

* [完成从 GitHub Enterprise Server 到 GHE.com 的实时迁移](/zh/enterprise-server@3.22/migrations/elm/complete-your-migration)

  完成后续任务，以便用户可以开始使用迁移的存储库。

* [排查从 GitHub Enterprise Server 到 GHE.com 的实时迁移问题](/zh/enterprise-server@3.22/migrations/elm/troubleshooting)

  有关迁移可能遇到的问题的建议。

* [用于从 GitHub Enterprise Server 迁移到 GHE.com 的实时迁移数据](/zh/enterprise-server@3.22/migrations/elm/migrated-data-reference)

  实时迁移中包括哪些数据和实时更新？

* [企业实时迁移 命令行界面参考](/zh/enterprise-server@3.22/migrations/elm/elm-cli-reference)

  CLI 工具的详细使用信息 ELM 。

* [关于 ghe-migrator](/zh/enterprise-server@3.22/migrations/using-ghe-migrator/about-ghe-migrator)

  可用于 `ghe-migrator` 将数据从 *源* 位置（ GitHub.com 组织或 GitHub Enterprise Server 实例）传输到 *目标*GitHub Enterprise Server 实例。

* [从 GitHub Enterprise Server 导出迁移数据](/zh/enterprise-server@3.22/migrations/using-ghe-migrator/exporting-migration-data-from-github-enterprise-server)

  若要更改平台或从试用实例移动到生产实例，可以通过准备实例、锁定存储库和生成迁移存档，从 GitHub Enterprise Server 实例导出迁移数据。

* [从 GitHub.com 导出迁移数据](/zh/enterprise-server@3.22/migrations/using-ghe-migrator/exporting-migration-data-from-githubcom)

  您可以使用 API 从 GitHub.com 上的组织中选择要迁移的存储库，然后生成一个迁移存档，并将其导入到 GitHub Enterprise Server 实例中。

* [将数据迁移到 GitHub Enterprise Server](/zh/enterprise-server@3.22/migrations/using-ghe-migrator/migrating-data-to-github-enterprise-server)

  生成迁移存档后，可以将数据导入目标 GitHub Enterprise Server 实例。 在将变更永久应用到目标实例之前，您需要检查变更，查看有无潜在的冲突。

* [使用 GitHub Enterprise Importer 排查迁移中的问题](/zh/enterprise-server@3.22/migrations/troubleshooting/troubleshooting-your-migration-with-github-enterprise-importer)

  如果迁移失败或产生意外结果，可以尝试常见的故障排除步骤。