如何将 Git 项目导入到 TFS Cloud [英] how to import Git project to TFS Cloud
问题描述
我访问了我们的 Team Foundation Service 页面并发现了一个很棒的新功能:
I visited our Team Foundation Service page and found a great new feature:
新团队项目 + Git
这是个好消息.我们在 Team Foundation Service 和 Git 中有项目.没有那么多,因为我喜欢 Git.它的功能给我留下了深刻的印象,但对它的界面从不满意.也就是说,Git 是开源的公认标准,我喜欢能够通过 TFS 管理我的 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).
我能够在 Git 中创建一个测试项目并且很兴奋.
I was able to create a Test Project in Git and am excited.
问题:对于所有网站搜索、谷歌搜索、戳戳、刺激,我不知道如何导入现有 Git投射到 TFS.
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:设置遥控器并推送.
确保在 Team Foundation Service 中启用备用凭据.
Make sure you enable alternate credentials in Team Foundation Service.
设置你的遥控器:git remote add
,
例如git remote add origin https://yourname.visualstudio.com/DefaultCollection/_git/ProjectName
push it: git push
,
例如git push origin 分支名
这篇关于如何将 Git 项目导入到 TFS Cloud的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!