我们如何从团队项目中的所有Git存储库连接到TFS? [英] How do we connect to TFS from all Git repositories in a Team Project?

查看:225
本文介绍了我们如何从团队项目中的所有Git存储库连接到TFS?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在运行最新的Visual Studio 2013 Ultimate,与更新1一起工作。我们也拥有最新的Team Foundation Server 2013。我们中的一些人对新的Git存储库集成感到非常兴奋,但似乎有一个相当大的限制。我们希望将多个Git存储库添加到单个团队项目,并能够从Visual Studio 2013访问构建和工作项目。它目前仅在您的Git存储库与团队项目命名相同时才有效。



这也是Visual Studio Online的限制。我的开源SourceLink项目仅在Visual Studio 2013中显示工作项目和构建,因为我已将远程VSO存储库命名为 origin ,并且Team Project和Git存储库都命名为SourceLink。

Visual Studio 2013 更新2 CTP 2 看起来好像有一些不错的Git更新,但是,我没有看到任何关于此的信息。有没有计划解决这个问题?我们希望能够从团队项目中的每个Git存储库访问工作项目和构建。





解决方案

@jamill在上面的评论中提到了我的解决方案。 Git与我们用于TFVC的工作流程略有不同。您必须连接到存储库,而不仅仅是团队项目。我必须单击刷新按钮才能显示存储库,然后双击存储库名称进行连接。之后,Work Items和Build按预期显示。 Yay!



之前




连接到团队项目中的Git存储库



p>



Tada!




I'm running the latest Visual Studio 2013 Ultimate at work with Update 1. We have the latest Team Foundation Server 2013 as well. Several of us are very excited about the new Git repository integration, but there appears to be a pretty big limitation. We want to add multiple Git repositories to a single Team Project and be able to access the Builds and the Work Items from Visual Studio 2013. It currently only works if your Git repository is named the same as the Team Project.

This is also a limitation for Visual Studio Online as well. My open source SourceLink project only shows Work Items and Builds in Visual Studio 2013 because I've named the remote VSO repository origin and the Team Project and Git Repository are both named SourceLink.

Visual Studio 2013 Update 2 CTP 2 looks like it has some nice Git updates, however, I don't see anything about this. Are there any plans to address this? We want to be able to access Work Items and Builds from every Git repository in a Team Project.

解决方案

@jamill clued me into the solution in the comments above. Git has a slightly different workflow than what we are used to with TFVC. You must connect to the repository, not just the Team Project. I had to click the refresh button for the for repositories to show up, and then double click on the repository name to connect. After that, Work Items and Build show up as expected. Yay!

Before

Connect to the Git Repository in the Team Project

Tada!

这篇关于我们如何从团队项目中的所有Git存储库连接到TFS?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆