简体   繁体   English

将VSTS \\ TFVC代码迁移到不同域上的Git DevOps

[英]Migrating VSTS\TFVC code to Git DevOps on different domain

About 4-5 years ago, we made a free VSTS\\TFVC account at visualstudio.com if i remember correctly. 大约4 - 5年前,如果我没记错的话,我们在visualstudio.com上创建了一个免费的VSTS \\ TFVC帐户。

We used our private email like hotmail to make the account. 我们使用像hotmail这样的私人电子邮件来创建帐户。 It was free for 5 users. 5位用户免费。

Recently microsfot did some renaming\\rebradning, and called it now DevOps, not sure how all the terms work. 最近microsfot做了一些重命名\\ rebradning,现在称它为DevOps,不确定所有术语的工作原理。

The problem is, now our company has its own DevOps which is somehow connected to the orginazitions sharepont\\teams\\etc. 问题是,现在我们公司有自己的DevOps,它以某种方式连接到orginazitions sharepont \\ teams \\ etc.

We would now like to migrate our VSTS\\TFVC code from the old account to our DevOps account which is connected to our orignization. 我们现在想将VSTS \\ TFVC代码从旧帐户迁移到与我们的orignization连接的DevOps帐户。 We would like to transfer the VSTS\\TFVC code to Git. 我们想将VSTS \\ TFVC代码转移到Git。

Is this possible?, we would ofcourse like to keep all the commits, comments, history, etc.. 这可能吗?我们会保留所有提交,评论,历史等。

Of course it can. 当然可以。

First you need to create the PAT token of the old org, and go your company org, open the project you want to clone to. 首先,您需要创建旧组织的PAT令牌,然后转到您的公司组织,打开要克隆到的项目。 Open repos Files , choose Import Repository . 打开repos Files ,选择Import Repository

在此输入图像描述

Input the code URL of your old org into the Clone URL , and enable the checkbox- Requires authorization . 将旧组织的代码URL输入克隆URL ,然后启用复选框 - 需要授权 You must authorized it and input the PAT token you create just now into the Password/PAT blank, or you will get the error that Clone URL requires authorization . 您必须对其进行授权并将刚刚创建的PAT令牌输入到密码/ PAT空白中,否则您将收到克隆URL需要授权的错误。

在此输入图像描述

Click Import and wait for some seconds until it succeed. 单击“导入”并等待几秒钟,直到成功。 It can clone the message with branches, commits, tags and etc. 它可以使用分支,提交,标签等克隆消息。

Edit: 编辑:

Since the old repos type is TFVC, so just choose source type as TFVC . 由于旧的repos类型是TFVC,所以只选择源类型为TFVC Enable migrate history and choose the time scope of history because you want retain the record. 启用迁移历史记录并选择历史记录的时间范围,因为您希望保留记录。

But, as you said in the comment, the longest time you can choose is 180 days. 但是,正如您在评论中所说,您可以选择的最长时间是180天。 This is as designed by Microsoft. 这是由Microsoft 设计的。 You can check this in the document . 您可以在文档中查看此内容

And also, the other UI limit is the imported repository and associated history (if imported) cannot exceed 1GB in size. 另外,其他UI限制是导入的存储库,关联的历史记录(如果导入)大小不能超过1GB。

Edit 2nd : 编辑第二

Until now, we could not get and migrate all of the history of TFVC repos from UI page. 到目前为止,我们无法从UI页面获取和迁移TFVC repos的所有历史记录。 But you can use another tool to achieve what you want : git-tfs . 但是你可以使用另一种工具来实现你想要的: git-tfs

(1) Use git-tfs to create a locally git repos from your complete history of TFVC repos . (1)使用git-tfs从TFVC repos的完整历史记录中创建本地git repos。 (2) Push this locally git repos to your remote project. (2)将此本地git存储库推送到远程项目。

I check out this doc which can for you refer to achieve what you want: Advanced migrations . 我查看了这个文档,可以为您提供实现您想要的内容: 高级迁移

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

相关问题 需要在 Azure DevOps 存储库中使用 C# 创建一个文件夹(以及其中的一个文件) - 无论是 Git 还是 TFVC - Need to create a folder(and a file inside it) using C# inside Azure DevOps repository - be it Git or TFVC 对来自不同 Git 存储库的项目使用 VSTS 持续集成管道 - Use VSTS Continous Integration Pipeline with Projects From Different Git Repositories 如何通过 api 从 Azure DevOps TFVC“获取最新版本” - How to "Get Latest Version" from Azure DevOps TFVC via api 无需签入 TFVC 即可为不同的工作项创建不同的搁置集 - Creating different shelvesets for different work itesm without checking-in TFVC Azure DevOps VSTS .netcore构建失败,但在我的PC上工作正常 - Azure DevOps VSTS .netcore build failing, but works fine on my PC 使用c#在Azure DevOps(VSTS)中使用子节点创建迭代 - create iteration with child nodes in Azure DevOps (VSTS) using c# 将C#7代码部署到VSTS - Deploying C# 7 code to VSTS 通过VSTS和Git联合WPF开发 - Joint WPF development via VSTS and Git 验证到 Azure Devops Git repo - Authenticating to Azure Devops Git repo 迁移到Windsor 3后,针对一个接口从xml和代码注册不同的实现失败 - After migrating to Windsor 3 registering different implementations from xml and code for one interface is failing
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM