简体   繁体   English

TFVC -> Git 在空存储库中导入结果

[英]TFVC -> Git Import results in an empty repository

Are imports broken as of 3/2/21? 21 年 3 月 2 日进口是否中断?

I tried the import process several times today in different AzDO projects and each time I get an empty git repo upon completion of the migration.我今天在不同的 AzDO 项目中尝试了多次导入过程,每次迁移完成后我都会得到一个空的 git 存储库。

I did see there was an issue associated with repo performance degradation and waited until it was resolved: https://status.dev.azure.com/_event/230197872我确实看到了与 repo 性能下降相关的问题,并一直等到它解决: https://status.dev.azure.com/_event/230197872

Permissions are not an issue.权限不是问题。 I attempted with elevated permissions and another user attempted as well.我尝试使用提升的权限,另一个用户也尝试过。

Tried with and without history migration.尝试使用和不使用历史迁移。

We can reproduce this issue on our side and we have reported this issue on our Developer Community forum, you could refer to this ticket to get the latest news.我们可以在我们这边重现这个问题,我们已经在我们的开发者社区论坛上报告了这个问题,您可以参考这张以获取最新消息。

As a workaround, we could migrate the TFVC repo to Git via git cmd.作为一种解决方法,我们可以通过 git cmd 将 TFVC 存储库迁移到 Git。

Follow the migration guide and execute the clone command:按照迁移指南执行克隆命令:

git tfs clone {TFVC repo URL}

Get all branches:获取所有分支:

git tfs branch –init --all

For each branch, run these commands:对于每个分支,运行以下命令:

git checkout branch

git log -1

git tfs pull -c=changesetNumber

Create a new repo in the azure devops and get the repo URL.在 azure devops 中创建一个新的 repo 并获取 repo URL。 Then setup the git repository upstream:然后在上游设置 git 存储库:

git remote add origin {New repo URL}

Finally you push all your local changes to the Remote.最后,您将所有本地更改推送到远程。

git push origin -u -all

You could refer to this blog and document for more details.您可以参考此博客文档以获取更多详细信息。

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

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