简体   繁体   English

我无法将项目推送或发布到git + TFS

[英]I can't push nor publish my project to git + TFS

I'm a bit new with Git and TFS from Visual Studio . 我对Visual Studio的 GitTFS有点陌生 In particular, for VS 2012. I recently join in a project where the members will be using Git + TFS for VS 2012 . 特别是对于VS2012。我最近加入了一个项目,该项目的成员将在VS 2012中使用Git + TFS The first time I used Git from VS 2012 I followed all the steps mentioned in the following link: 第一次从VS 2012使用Git时,我遵循以下链接中提到的所有步骤:

http://tfs.visualstudio.com/en-us/learn/create-code-project-vs-git http://tfs.visualstudio.com/zh-CN/learn/create-code-project-vs-git

As mention the first time when I was doing some test all worked OK, however now that I created a second project from my TFS account and create a solution from VS 2012 and then linked the solution with my Gir repository, I can't neither push or publish my local solution to the repository in Git. 如前所述,当我第一次进行测试时,一切正常,但是现在,我从TFS帐户创建了第二个项目,并从VS 2012创建了一个解决方案,然后将该解决方案与我的Gir存储库链接,我既不能推送或将我的本地解决方案发布到Git中的存储库。

I've recheck all the steps again and the only differences I have seen is the fact that the "Publish to [name of the Git project]" button is not longer available from my Visual Studio ( from the link above -> Publish your code into TFS section -> Connect your team project ) 我再次检查了所有步骤,唯一看到的区别是Visual Studio不再提供“发布到[Git项目的名称]”按钮( 通过上面的链接->发布代码)进入TFS部分->连接您的团队项目

If any of you guys have a clue of what's going on or a workaround, that will be very helpful 如果你们有什么事的线索或解决方法,那将非常有帮助

Regards! 问候!

I think I am having the same problem as you, I didn't realize until now that in order to publish a local repository to TFS you must right click the TFS item and click connect, then right click the local repository and the publish button will be available. 我想我和您有同样的问题,直到现在我才意识到要向TFS发布本地存储库,您必须右键单击TFS项,然后单击连接,然后右键单击本地存储库,然后发布按钮将能得到的。 This resolved the problem on my machine. 这解决了我机器上的问题。

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

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