如何将Git项目导入到TFS Cloud

编程入门 行业动态 更新时间:2024-10-24 22:21:56
本文介绍了如何将Git项目导入到TFS Cloud的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我访问了我们的Team Foundation Service页面,发现了一个很棒的新功能: >

这是个好消息。我们在Team Foundation Service和Git中有项目。没有那么多,因为我喜欢Git。它的功能给我留下了非常深刻的印象,但它的界面却让人感觉不舒服。也就是说,Git是开源的公认标准,我喜欢能够通过TFS管理我的Git Repos的想法。获得两全其美(我希望)。

我能够在Git中创建测试项目,并且非常兴奋。

问题:对于所有网站搜索,搜索,戳动,刺戳,我无法弄清楚如何导入

>:设置您的远程设备并推送。
确保您在Team Foundation Service中启用备用凭据。 设置您的远程: git remote add< name> < url> , 例如 git remote add origin yourname.visualstudio/DefaultCollection/_git/ProjectName

  • 按下它: git push<远程名称> <分行名称> ,例如, git push origin branchname

  • I visited our Team Foundation Service page and found a great new feature:

    New Team Project + Git

    This is great news. We have Projects in Team Foundation Service AND Git. Not as much because I love Git. I was very impressed with it's functionality, but never comfortable with its interface. That said, Git is an accepted standard for Open Source and I love the idea of being able to admin my Git Repos through TFS. Getting the best of both worlds (I hope).

    I was able to create a Test Project in Git and am excited.

    Problem: for all the site searching, googling, poking, prodding, I can't figure out how to import an existing Git Project into TFS.

    解决方案

    tl;dr: Set your remote and push.

  • Make sure you enable alternate credentials in Team Foundation Service.

  • Set your remote: git remote add <name> <url>, e.g. git remote add origin yourname.visualstudio/DefaultCollection/_git/ProjectName

  • Push it: git push <remote name> <name of branch>, e.g. git push origin branchname

  • 更多推荐

    如何将Git项目导入到TFS Cloud

    本文发布于:2023-08-02 15:28:37,感谢您对本站的认可!
    版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
    本文标签:如何将   导入到   项目   Cloud   Git

    发布评论

    评论列表 (有 0 条评论)
    草根站长

    >www.elefans.com

    编程频道|电子爱好者 - 技术资讯及电子产品介绍!