简体   繁体   English

Git-TFS克隆存储库有问题

[英]Having issues with Git-TFS cloning repository

I'm trying to migrate a repository from TFS 2010 to Git. 我正在尝试将存储库从TFS 2010迁移到Git。

This is a relatively large TFS server. 这是一个相对较大的TFS服务器。 When I try and clone Trunk it says it does not exist. 当我尝试克隆Trunk时说它不存在。 When I try one of the other branches it says I am going to clone the whole repository or too high in the repository path. 当我尝试其他分支之一时,它说我将克隆整个存储库,或者在存储库路径中克隆太高。 If I go lower int he path it says it does not exist or same error. 如果我走低一点,他说它不存在或存在同样的错误。

Ultimately I need to migrate this entire project over to GIT. 最终,我需要将整个项目迁移到GIT。 I am currently using git-tfs to try and do the migration. 我目前正在使用git-tfs尝试进行迁移。

I tried cloning a specific branch which appeared to work but only got a few revisions then when I did git tfs branch --init --all and it said it was not a branch. 我尝试克隆一个似乎可以正常工作的分支,但是当我执行git tfs branch --init --all时,只得到了一些修订,它说这不是分支。

As explained in the documentation , you can use the command list-remote to find the root branch of your TFS repository. 文档中所述 ,您可以使用list-remote命令查找TFS存储库的根分支。

Before trying to clone all your branches, you must also be sure to have converted all theses branches from "folder" to "branches" (even the deleted ones). 在尝试克隆所有分支之前,还必须确保已将所有这些分支从“文件夹”转换为“分支” (甚至是已删除的分支 )。 Seems to be part of your problem.... 似乎是您问题的一部分...。

I hope that's your only problem because not all the (very strange) things TFS permit are supported in the released version. 我希望这是您唯一的问题,因为发行版中不支持TFS允许的所有(非常奇怪的)东西。 Perhaps you will have to look at git-tfs forum where there is work in progress to support more cases. 也许您需要在git-tfs论坛上进行搜索,以便为更多案例提供支持。 You will have to build your own version if that's the case. 在这种情况下,您将必须构建自己的版本。

PS: You haven't given us enough data to solve your problem. PS:您没有给我们足够的数据来解决您的问题。 Update the question with the result of the list-remote command and the git-tfs command you used... 使用您使用的list-remote命令和git-tfs命令的结果更新问题...

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

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