1
0
mirror of synced 2025-12-30 12:02:01 -05:00
Files
docs/translations/zh-CN/content/get-started/importing-your-projects-to-github/importing-source-code-to-github/source-code-migration-tools.md
2022-09-13 17:48:44 +00:00

2.6 KiB
Raw Blame History

title, intro, redirect_from, versions, shortTitle, ms.openlocfilehash, ms.sourcegitcommit, ms.translationtype, ms.contentlocale, ms.lasthandoff, ms.locfileid
title intro redirect_from versions shortTitle ms.openlocfilehash ms.sourcegitcommit ms.translationtype ms.contentlocale ms.lasthandoff ms.locfileid
源代码迁移工具 您可以使用外部工具将项目移动到 GitHub。
/articles/importing-from-subversion
/articles/source-code-migration-tools
/github/importing-your-projects-to-github/source-code-migration-tools
/github/importing-your-projects-to-github/importing-source-code-to-github/source-code-migration-tools
fpt ghes ghae ghec
* * * *
Code migration tools 7877d435e7971f669d9d49a70d2d2450371b5159 fb047f9450 HT zh-CN 09/11/2022 147882165

{% ifversion fpt or ghec %}

我们建议使用 GitHub 导入工具从 Subversion、Mercurial、Team Foundation Version Control (TFVC) 或其他 Git 存储库导入项目。 您还可以使用这些外部工具将项目转换为 Git。

{% endif %}

从 Subversion 导入

在典型 Subversion 环境中,多个项目存储在一个根仓库中。 在 GitHub 上,这些项目的每一个通常都将映射到个人帐户或组织的单独 Git 存储库。 以下情况时,我们建议将 Subversion 仓库的每一部分导入到单独的 GitHub 仓库:

  • 协作者需要检出或提交到独立于项目其他部分的部分
  • 您想要不同的部分有其自己的访问权限

我们建议使用以下工具将 Subversion 仓库转换为 Git

从 Mercurial 导入

建议使用 hg-fast-export 将 Mercurial 存储库转换为 Git。

从 TFVC 导入

建议使用 git-tfs 在 TFVC 和 Git 之间移动更改。

有关从 TFVC集中式版本控制系统移动到 Git 的详细信息,请参阅 Microsoft 文档站点中的“规划到 Git 的迁移”。

{% tip %}

提示: 成功将项目转换为 Git 后,可以 将它推送到 {% data variables.product.prodname_dotcom %}

{% endtip %}

{% ifversion fpt or ghec %}

延伸阅读

{% endif %}