我如何将现有的Git存储库推送到Team Foundation Service [英] How can I push my existing Git repository to Team Foundation Service

查看:147
本文介绍了我如何将现有的Git存储库推送到Team Foundation Service的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

微软现在在Team Foundation Service上支持Git仓库。我在Team Foundation Service上有一个帐户,我想将现有的Git存储库推送到该项目中。



每当我尝试搜索时,像TFS-GIT或GIT-TF。我很确定我不想要这些,因为我认为那些更改为代码库的Team Foundation Server模型,而这不是我想要的。



具体来说,我有一个现有的Git仓库,我想把它推到TFService上。

好的,我显然是过分复杂。这是我做的。


  1. 在TFService中创建一个新项目
  2. 在Visual中连接到该项目Studio

  3. 在Visual Studio中克隆该项目

  4. git pull c:\source\oldGitProject

就是这样,它将旧位置的所有更改都拉出来了,我可以轻松地将它推送到TFService。

Microsoft now has support for Git repositories on their Team Foundation Service. I have an account on Team Foundation Service, and I'd like to push my existing Git repository to a project there.

Whenever I try to do searches, I keep finding things like TFS-GIT, or GIT-TF. I'm pretty sure I don't want those, as I think those change to the Team Foundation Server model for code repositories, and that's not what I want.

Specifically, I have an existing Git repository that I want to push to TFService.

解决方案

Okay, I was apparently overcomplicating this. Here's what I did.

  1. Created a new project in TFService
  2. Connected to that project in Visual Studio
  3. Cloned that project in Visual Studio
  4. git pull c:\source\oldGitProject

That was it, it pulled all of the changes from the old location, and I could push that up to TFService easily.

这篇关于我如何将现有的Git存储库推送到Team Foundation Service的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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