简体   繁体   English

TFS vsts到git repo迁移

[英]TFS vsts to git repo migration

I am new to VSTS version controlling, I have one project into TFS 2017 into VSTS version controlling, this project is huge and having all dependencies, moreover we have nested solution ( one .sln contains more than one other .sln into it). 我是VSTS版本控制的新手,我有一个将TFS 2017引入VSTS版本控制的项目,该项目庞大且具有所有依赖性,此外,我们还嵌套了解决方案(一个.sln包含多个其他.sln)。

Now I wanted to migrate my VSTS repository into git under TFS 2017 only. 现在我只想在TFS 2017下将VSTS存储库迁移到git中。

How can i do that? 我怎样才能做到这一点? please provide your suggestions 请提供您的建议

If you use TFS 2017 Update 1 or higher version, import a Git repo from VSTS to TFS is easy. 如果您使用的是TFS 2017 Update 1或更高版本,则可以轻松地从VSTS导入Git存储库到TFS。 Please follow the steps below: 请按照以下步骤操作:

  1. Create a PAT (personal access token) in VSTS 在VSTS中创建PAT(个人访问令牌)
  2. Go to your VSTS repo ( https://account.visualstudio.com/_git/teamproject ), and clone the repo: 转到您的VSTS存储库( https://account.visualstudio.com/_git/teamproject ),然后克隆存储库:

在此处输入图片说明

  1. Create a Git team project in TFS 2017, go to the repo, and from the repo drop-down, select Import repository : 在TFS 2017中创建一个Git团队项目,转到存储库 ,然后从存储库下拉列表中选择Import repository

在此处输入图片说明

  1. Type the URL you cloned from VSTS (Step2), and type the PAT you created in VSTS (Step1): 键入从VSTS克隆的URL(第2步),然后键入在VSTS中创建的PAT(第1步):

在此处输入图片说明

If you use TFS 2017 RTM, you would need to manually import a repo , we suggest you upgrade your TFS 2017 to the latest edition for better experience. 如果您使用TFS 2017 RTM,则需要手动导入存储库 ,我们建议您将TFS 2017升级到最新版本,以获得更好的体验。

More information of importing a git repo, please refer to the link below: 有关导入git repo的更多信息,请参考以下链接:

https://docs.microsoft.com/en-us/vsts/git/import-git-repository https://docs.microsoft.com/zh-cn/vsts/git/import-git-repository

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM