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

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

问题描述

Microsoft 现在在其 Team Foundation Service 上支持 Git 存储库.我有一个 Team Foundation Service 帐户,我想将我现有的 Git 存储库推送到那里的项目.

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.

每当我尝试进行搜索时,我都会不断寻找 TFS-GIT 或 GIT-TF 之类的东西.我很确定我不想要这些,因为我认为那些更改为代码存储库的 Team Foundation Server 模型,而这不是我想要的.

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.

具体来说,我有一个想要推送到 TFService 的现有 Git 存储库.

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. 在 TFService 中创建了一个新项目
  2. 在 Visual Studio 中连接到该项目
  3. 在 Visual Studio 中克隆了该项目
  4. git pull c:sourceoldGitProject

就是这样,它从旧位置提取了所有更改,我可以轻松地将其推送到 TFService.

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天全站免登陆