{"meta":{"title":"迁移文档","intro":"如果您要从其他代码托管平台迁移到 GitHub，或者在 GitHub 产品之间迁移，请了解如何使用我们的迁移工具将您的工作带过去。","product":"迁移","breadcrumbs":[{"href":"/zh/migrations","title":"迁移"}],"documentType":"product"},"body":"# 迁移文档\n\n如果您要从其他代码托管平台迁移到 GitHub，或者在 GitHub 产品之间迁移，请了解如何使用我们的迁移工具将您的工作带过去。\n\n## Recommended\n\n* [规划到 GitHub 的迁移](/zh/migrations/overview/planning-your-migration-to-github)\n\n  规划和执行成功迁移到产品或产品之间的GitHub迁移GitHub。\n\n* [关于 GitHub 的迁移工具](/zh/migrations/overview/about-githubs-migration-tooling)\n\n  GitHub 提供了各种不同的工具选项来帮助迁移到 GitHub 以及在 GitHub 产品之间迁移。\n\n* [迁移到 GitHub 的路径](/zh/migrations/overview/migration-paths-to-github)\n\n  请查看从其他产品迁移到GitHub，或在GitHub产品之间迁移的路径概述。\n\n* [从Azure DevOps迁移](/zh/migrations/ado)\n\n  规划和执行从 Azure DevOps 迁移到 GitHub Enterprise Cloud。 本由六部分构成的指南介绍了如何配置访问、迁移和后续任务，使存储库准备好工作。\n\n* [使用 GitHub 导入工具导入仓库](/zh/migrations/importing-source-code/using-github-importer/importing-a-repository-with-github-importer)\n\n  如果某个项目托管在另一个基于 Git 的托管服务上，则可以快速将其导入到 GitHub 使用该工具 GitHub Importer 。\n\n* [将本地托管代码添加到 GitHub](/zh/migrations/importing-source-code/using-the-command-line-to-import-source-code/adding-locally-hosted-code-to-github)\n\n  如果您的代码存储在您计算机本地，并且由 Git 管理，或者未被任何版本控制系统（VCS）管理，则可以使用 GitHub 或 Git 命令将代码导入到 GitHub CLI。\n\n* [关于 GitHub Enterprise Importer](/zh/migrations/using-github-enterprise-importer/understanding-github-enterprise-importer/about-github-enterprise-importer)\n\n  借助 GitHub Enterprise Importer，可以将企业从各种源迁移到 GitHub Enterprise Cloud。\n\n* [在 GitHub 产品之间迁移的概述](/zh/migrations/using-github-enterprise-importer/migrating-between-github-products/overview-of-a-migration-between-github-products)\n\n  了解如何借助 GitHub 完成从一种 GitHub Enterprise Importer 产品迁移到另一种产品的整个过程，从规划到实施，再到完成后续任务。\n\n* [从 Bitbucket Server 迁移到 GitHub Enterprise Cloud 的概述](/zh/migrations/using-github-enterprise-importer/migrating-from-bitbucket-server-to-github-enterprise-cloud/overview-of-a-migration-from-bitbucket-server-to-github-enterprise-cloud)\n\n  了解使用 GitHub 从 Bitbucket Server 迁移到 GitHub Enterprise Importer 的过程（从计划、实现到完成后续任务）。\n\n## Links\n\n### Getting started\n\n* [关于 GitHub 的迁移工具](/zh/migrations/overview/about-githubs-migration-tooling)\n\n  GitHub 提供了各种不同的工具选项来帮助迁移到 GitHub 以及在 GitHub 产品之间迁移。\n\n* [规划到 GitHub 的迁移](/zh/migrations/overview/planning-your-migration-to-github)\n\n  规划和执行成功迁移到产品或产品之间的GitHub迁移GitHub。\n\n## Articles\n\n* [关于 GitHub 的迁移工具](/zh/migrations/overview/about-githubs-migration-tooling)\n\n  GitHub 提供了各种不同的工具选项来帮助迁移到 GitHub 以及在 GitHub 产品之间迁移。\n\n* [关于 GitHub 产品之间的迁移](/zh/migrations/overview/migrations-within-github)\n\n  为什么我应该在 GitHub 平台之间切换，我需要考虑些什么？\n\n* [规划到 GitHub 的迁移](/zh/migrations/overview/planning-your-migration-to-github)\n\n  规划和执行成功迁移到产品或产品之间的GitHub迁移GitHub。\n\n* [迁移到 GitHub 的路径](/zh/migrations/overview/migration-paths-to-github)\n\n  请查看从其他产品迁移到GitHub，或在GitHub产品之间迁移的路径概述。\n\n* [关于锁定的存储库](/zh/migrations/overview/about-locked-repositories)\n\n  可以锁定存储库以防止更改，通常为了进行迁移。\n\n* [模特和用户活动](/zh/migrations/overview/mannequins-and-user-activity)\n\n  Mannequins 是用户可以在迁移后回收的占位符标识。\n\n* [以编程方式导入存储库](/zh/migrations/overview/programmatically-importing-repositories)\n\n  你可以以编程方式将存储库导入到 GitHub。\n\n* [了解从 Azure DevOps 迁移到 GitHub](/zh/migrations/ado/understand-migrations-from-azure-devops-to-github)\n\n  GitHub Enterprise Importer可以自动从Azure DevOps迁移。\n\n* [管理访问权限](/zh/migrations/ado/manage-access)\n\n  设置从 Azure DevOps 迁移到 GitHub所需的访问权限。\n\n* [安装和配置 GitHub Enterprise Importer](/zh/migrations/ado/install-and-configure-github-enterprise-importer)\n\n  安装 ADO2GH extension of the GitHub CLI 并配置用于迁移的环境。\n\n* [准备从Azure DevOps迁移到 GitHub](/zh/migrations/ado/prepare-for-your-migration-from-azure-devops-to-github)\n\n  通过了解时间线、迁移的数据以及组织结构来规划迁移。\n\n* [将存储库从Azure DevOps迁移到GitHub](/zh/migrations/ado/migrate-your-repositories-from-azure-devops-to-github)\n\n  执行试用版运行，然后将存储库从 Azure DevOps 迁移到 GitHub。\n\n* [后续任务](/zh/migrations/ado/follow-up-tasks)\n\n  每次迁移完成后，您需要完成一些附加任务，然后存储库才能准备就绪。\n\n* [Azure DevOps与GitHub之间的主要区别](/zh/migrations/ado/key-differences-between-azure-devops-and-github)\n\n  从Azure DevOps移动到 GitHub 后，存储库访问、身份验证和拉取请求等核心工作流有所不同。\n\n* [使用 GraphQL 将存储库从 Azure DevOps 迁移到 GitHub Enterprise Cloud](/zh/migrations/ado/use-graphql-to-migrate-repositories-from-azure-devops-to-github-enterprise-cloud)\n\n  你可以使用 GraphQL API 构建自己的工具，将仓库从 Azure DevOps 迁移到 GitHub Enterprise Cloud。\n\n* [授予迁移者角色](/zh/migrations/ado/granting-the-migrator-role)\n\n  迁移者角色使用户或团队能够代表组织运行迁移。\n\n* [关于 GitHub 导入工具](/zh/migrations/importing-source-code/using-github-importer/about-github-importer)\n\n  如果源代码存储在另一个基于 Git 的托管服务中，则可以使用 GitHub.com 将代码移动到 GitHub Importer。\n\n* [使用 GitHub 导入工具导入仓库](/zh/migrations/importing-source-code/using-github-importer/importing-a-repository-with-github-importer)\n\n  如果某个项目托管在另一个基于 Git 的托管服务上，则可以快速将其导入到 GitHub 使用该工具 GitHub Importer 。\n\n* [关于使用命令行导入源代码](/zh/migrations/importing-source-code/using-the-command-line-to-import-source-code/about-source-code-imports-using-the-command-line)\n\n  可以使用命令行工具将源代码及其修订历史记录导入 GitHub。\n\n* [将本地托管代码添加到 GitHub](/zh/migrations/importing-source-code/using-the-command-line-to-import-source-code/adding-locally-hosted-code-to-github)\n\n  如果您的代码存储在您计算机本地，并且由 Git 管理，或者未被任何版本控制系统（VCS）管理，则可以使用 GitHub 或 Git 命令将代码导入到 GitHub CLI。\n\n* [使用命令行导入外部 Git 存储库](/zh/migrations/importing-source-code/using-the-command-line-to-import-source-code/importing-an-external-git-repository-using-the-command-line)\n\n  如果在 Git 存储库中跟踪了源代码，可以在命令行上使用 Git 导入存储库。\n\n* [导入 Subversion 存储库](/zh/migrations/importing-source-code/using-the-command-line-to-import-source-code/importing-a-subversion-repository)\n\n  可以通过将存储库转换为 Git，然后将 Git 存储库推送到 GitHub，从 Subversion 导入存储库。\n\n* [导入 Mercurial 存储库](/zh/migrations/importing-source-code/using-the-command-line-to-import-source-code/importing-a-mercurial-repository)\n\n  可以通过将存储库转换为 Git，然后将 Git 存储库推送到 GitHub，从 Mercurial 导入存储库。\n\n* [导入 Team Foundation 版本控制存储库](/zh/migrations/importing-source-code/using-the-command-line-to-import-source-code/importing-a-team-foundation-version-control-repository)\n\n  可以通过将存储库转换为 Git，然后将 Git 存储库推送到 GitHub，从 Team Foundation 版本控制 (TFVC) 导入存储库。\n\n* [借助管理 shell 从其他版本控制系统导入](/zh/importing-from-other-version-control-systems-with-the-administrative-shell)\n\n  使用管理 shell，可以将 Subversion、Mercurial 和 Team Foundation Version Control 中的内容导入到 GitHub Enterprise Server 上的 Git 存储库中。\n\n* [关于 GitHub Enterprise Importer](/zh/migrations/using-github-enterprise-importer/understanding-github-enterprise-importer/about-github-enterprise-importer)\n\n  借助 GitHub Enterprise Importer，可以将企业从各种源迁移到 GitHub Enterprise Cloud。\n\n* [关于从 Bitbucket Server 迁移到 GitHub Enterprise Cloud](/zh/migrations/using-github-enterprise-importer/migrating-from-bitbucket-server-to-github-enterprise-cloud/about-migrations-from-bitbucket-server-to-github-enterprise-cloud)\n\n  了解 GitHub Enterprise Importer 可以迁移的数据。\n\n* [从 Bitbucket Server 迁移到 GitHub Enterprise Cloud 的概述](/zh/migrations/using-github-enterprise-importer/migrating-from-bitbucket-server-to-github-enterprise-cloud/overview-of-a-migration-from-bitbucket-server-to-github-enterprise-cloud)\n\n  了解使用 GitHub 从 Bitbucket Server 迁移到 GitHub Enterprise Importer 的过程（从计划、实现到完成后续任务）。\n\n* [管理从 Bitbucket Server 迁移的访问权限](/zh/migrations/using-github-enterprise-importer/migrating-from-bitbucket-server-to-github-enterprise-cloud/managing-access-for-a-migration-from-bitbucket-server)\n\n  在使用 GitHub Enterprise Importer之前，请确保对迁移的源和目标具有适当的访问权限。\n\n* [将存储库从 Bitbucket Server 迁移到 GitHub Enterprise Cloud](/zh/migrations/using-github-enterprise-importer/migrating-from-bitbucket-server-to-github-enterprise-cloud/migrating-repositories-from-bitbucket-server-to-github-enterprise-cloud)\n\n  您可以使用 GitHub Enterprise Cloud 将存储库从 Bitbucket Server 迁移到 GitHub CLI。\n\n* [关于使用 GitHub Enterprise Importer 在 GitHub 产品之间迁移](/zh/migrations/using-github-enterprise-importer/migrating-between-github-products/about-migrations-between-github-products)\n\n  了解哪些数据 GitHub Enterprise Importer 可以迁移在 GitHub 产品之间。\n\n* [在 GitHub 产品之间迁移的概述](/zh/migrations/using-github-enterprise-importer/migrating-between-github-products/overview-of-a-migration-between-github-products)\n\n  了解如何借助 GitHub 完成从一种 GitHub Enterprise Importer 产品迁移到另一种产品的整个过程，从规划到实施，再到完成后续任务。\n\n* [管理 GitHub 产品之间迁移的访问权限](/zh/migrations/using-github-enterprise-importer/migrating-between-github-products/managing-access-for-a-migration-between-github-products)\n\n  在使用 GitHub Enterprise Importer之前，请确保对迁移的源和目标具有适当的访问权限。\n\n* [将存储库从 GitHub Enterprise Server 迁移到 GitHub Enterprise Cloud](/zh/migrations/using-github-enterprise-importer/migrating-between-github-products/migrating-repositories-from-github-enterprise-server-to-github-enterprise-cloud)\n\n  您可以使用GitHub Enterprise Server或 API 将仓库从GitHub Enterprise Cloud迁移到GitHub CLI。\n\n* [将存储库从 GitHub.com 迁移到 GitHub Enterprise Cloud](/zh/migrations/using-github-enterprise-importer/migrating-between-github-products/migrating-repositories-from-githubcom-to-github-enterprise-cloud)\n\n  您可以使用 GitHub.com 或 GraphQL API，将仓库从 GitHub Enterprise Cloud 迁移到 GitHub CLI。\n\n* [将组织从 GitHub.com 迁移到 GitHub Enterprise Cloud](/zh/migrations/using-github-enterprise-importer/migrating-between-github-products/migrating-organizations-from-githubcom-to-github-enterprise-cloud)\n\n  可以使用 GitHub.com 或 GraphQL API 将组织从 GitHub Enterprise Cloud 迁移到 GitHub CLI。\n\n* [了解如何从 GitLab 迁移到 GitHub](/zh/migrations/using-github-enterprise-importer/migrate-from-gitlab/understand-migrations)\n\n  GitHub Enterprise Importer 可自动完成从 GitLab 的迁移。\n\n* [规划从 GitLab 迁移到 GitHub](/zh/migrations/using-github-enterprise-importer/migrate-from-gitlab/plan-your-migration)\n\n  通过了解时间线、迁移的数据以及组织结构来规划迁移。\n\n* [管理从 GitLab 迁移到 GitHub的访问](/zh/migrations/using-github-enterprise-importer/migrate-from-gitlab/manage-access)\n\n  设置从 GitLab 迁移到 GitHub所需的访问权限。\n\n* [安装和配置 GitHub Enterprise Importer](/zh/migrations/using-github-enterprise-importer/migrate-from-gitlab/install-and-configure-github-enterprise-importer)\n\n  安装 GL2GH extension of the GitHub CLI 并配置用于迁移的环境。\n\n* [配置 Blob 存储](/zh/migrations/using-github-enterprise-importer/migrate-from-gitlab/configure-storage)\n\n  需要暂时存储 GitLab 中的存档，以便 GitHub 可以读取它们。\n\n* [将存储库从 GitLab 迁移到 GitHub](/zh/migrations/using-github-enterprise-importer/migrate-from-gitlab/migrate-your-repositories)\n\n  执行试用运行，然后将存储库从 GitLab 迁移到 GitHub。\n\n* [后续任务](/zh/migrations/using-github-enterprise-importer/migrate-from-gitlab/follow-up-tasks)\n\n  每次迁移完成后，您需要完成一些附加任务，然后存储库才能准备就绪。\n\n* [使用 GraphQL 将存储库从 GitLab 迁移到 GitHub Enterprise Cloud](/zh/migrations/using-github-enterprise-importer/migrate-from-gitlab/use-graphql)\n\n  可以生成自己的工具，将存储库从 GitLab GitHub Enterprise Cloud 迁移到使用 GraphQL API。\n\n* [授予迁移者角色](/zh/migrations/using-github-enterprise-importer/migrate-from-gitlab/grant-the-migrator-role)\n\n  迁移者角色使用户或团队能够代表组织运行迁移。\n\n* [访问 GitHub Enterprise Importer 的迁移日志](/zh/migrations/using-github-enterprise-importer/completing-your-migration-with-github-enterprise-importer/accessing-your-migration-logs-for-github-enterprise-importer)\n\n  运行迁移后应查看迁移日志，检查是否存在未按预期迁移的数据。\n\n* [回收 GitHub Enterprise Importer 的模型](/zh/migrations/using-github-enterprise-importer/completing-your-migration-with-github-enterprise-importer/reclaiming-mannequins-for-github-enterprise-importer)\n\n  迁移后，可以将占位符标识（模型）的历史记录分配给组织成员。\n\n* [关于从 GitHub Enterprise Server 到 GHE.com 的实时迁移](/zh/migrations/elm/about-live-migrations)\n\n  实时迁移如何最大程度地减少开发人员的停机时间？\n\n* [准备从 GitHub Enterprise Server 到 GHE.com 的实时迁移](/zh/migrations/elm/prepare-for-your-migration)\n\n  开始 Enterprise Live Migrations 之前应该考虑的关键问题。\n\n* [使用企业实时迁移迁移存储库](/zh/migrations/elm/migrate-your-repository)\n\n  在停机时间最短的情况下，从GitHub Enterprise Server迁移到GHE.com。\n\n* [完成从 GitHub Enterprise Server 到 GHE.com 的实时迁移](/zh/migrations/elm/complete-your-migration)\n\n  完成后续任务，以便用户可以开始使用迁移的存储库。\n\n* [排查从 GitHub Enterprise Server 到 GHE.com 的实时迁移问题](/zh/migrations/elm/troubleshooting)\n\n  有关迁移可能遇到的问题的建议。\n\n* [用于从 GitHub Enterprise Server 迁移到 GHE.com 的实时迁移数据](/zh/migrations/elm/migrated-data-reference)\n\n  实时迁移中包括哪些数据和实时更新？\n\n* [企业实时迁移 命令行界面参考](/zh/migrations/elm/elm-cli-reference)\n\n  CLI 工具的详细使用信息 ELM CLI 。\n\n* [关于 ghe-migrator](/zh/migrations/using-ghe-migrator/about-ghe-migrator)\n\n  可用于 `ghe-migrator` 将数据从 *源* 位置（ GitHub.com 组织或 GitHub Enterprise Server 实例）传输到 *目标*GitHub Enterprise Server 实例。\n\n* [从 GitHub Enterprise Server 导出迁移数据](/zh/migrations/using-ghe-migrator/exporting-migration-data-from-github-enterprise-server)\n\n  若要更改平台或从试用实例移动到生产实例，可以通过准备实例、锁定存储库和生成迁移存档，从 GitHub Enterprise Server 实例导出迁移数据。\n\n* [从 GitHub.com 导出迁移数据](/zh/migrations/using-ghe-migrator/exporting-migration-data-from-githubcom)\n\n  您可以使用 API 从 GitHub.com 上的组织中选择要迁移的存储库，然后生成一个迁移存档，并将其导入到 GitHub Enterprise Server 实例中。\n\n* [将数据迁移到 GitHub Enterprise Server](/zh/migrations/using-ghe-migrator/migrating-data-to-github-enterprise-server)\n\n  生成迁移存档后，可以将数据导入目标 GitHub Enterprise Server 实例。 在将变更永久应用到目标实例之前，您需要检查变更，查看有无潜在的冲突。\n\n* [使用 GitHub Enterprise Importer 排查迁移中的问题](/zh/migrations/troubleshooting/troubleshooting-your-migration-with-github-enterprise-importer)\n\n  如果迁移失败或产生意外结果，可以尝试常见的故障排除步骤。\n\n* [为存储库迁移设置规则集旁路](/zh/setting-ruleset-bypasses-for-repository-migrations)\n\n  在迁移存储库GitHub Enterprise Importer时，组织级和企业级规则集的评估可能导致 Git 推送失败，除非在**豁免**模式下将**存储库迁移**添加到例外列表中。"}