简体   繁体   English

在Visual Studio 2012中使用本地Git存储库

[英]use local Git repositories in Visual Studio 2012

I've downloaded the necessary add-ins for Visual Studio 2012 to allow me to set up Git hub local repos. 我已经下载了Visual Studio 2012必需的加载项,以允许我设置Git Hub本地存储库。

I cloned some projects from git hub, and I see them in visual studio team explorer as Local Git Repositories. 我从git hub克隆了一些项目,并且在Visual Studio团队资源管理器中将它们视为Local Git Repositories。

The problem is: how do I reference these local repositories in my visual studio web project. 问题是:如何在我的Visual Studio Web项目中引用这些本地存储库。 I want to maintain the reference to the Local Git Repo, not just copy in the javascript files. 我想保留对本地Git存储库的引用,而不仅仅是复制到javascript文件中。

Is this my solution: the remote uri of my local git repo must be set to the TFS uri ? 这是我的解决方案: 本地git repo的远程uri必须设置为TFS uri吗? Migrate local Git repo to Visual Studio Online from IDE In which case I def need tfs 2013? 从IDE将本地Git存储库迁移到Visual Studio Online在这种情况下,我需要使用tfs 2013?

Thanks, Michael 谢谢迈克尔

If you wish to use TFVC 2012 with the Git client tools use Git-TF . 如果您希望将TFVC 2012与Git客户端工具一起使用,请使用Git-TF If you wish to migrate from TFVC to Git you need a new Team Project in Visual Studio Online or TFS 2013 and you will have the full native Git experience. 如果您希望从TFVC迁移到Git,则需要在Visual Studio Online或TFS 2013中使用新的团队项目,并且将拥有完整的本机Git经验。

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

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