简体   繁体   English

在TFS 2015内部部署中使用Xcode

[英]Using Xcode with TFS 2015 on-premises

Is there any way to check in code from Xcode to TFS 2015 on-premises installation? 有什么方法可以将代码从Xcode检入到TFS 2015本地安装中吗? Even if TFS is just acting as a go between for Xcode and Git? 即使TFS只是Xcode和Git之间的过渡? The main thing we'd like to be able to do is for iOS code to be checked in to TFS with changesets recorded, and work items/bugs available. 我们想要做的主要事情是,将记录变更集并提供工作项/错误的iOS代码签入TFS。

Any suggestions? 有什么建议么? We are not looking to move to VS Team Services / VS Online. 我们不想迁移到VS Team Services / VS Online。

you have 2 options. 您有2个选择。

  1. The best option is to create a new TFS Team Project with Git for source control. 最好的选择是使用Git创建一个新的TFS团队项目以进行源代码控制。 Or you can add a Git repo so an existing Team Project. 或者,您可以添加一个Git存储库,以便添加一个现有的Team Project。 This is a standard Git repo, but hosted in TFS. 这是标准的Git存储库,但托管在TFS中。 It works just like any other hosted Git repo. 它的工作方式与其他任何托管的Git存储库一样。 Clone the repo and off you go. 克隆仓库,然后离开。

  2. If you cannot use Git inside TFS and you must use TFVC then you can use git-tf . 如果您不能在TFS中使用Git,而必须使用TFVC,则可以使用git-tf This is effectively a bridge between a local git repo and a centralized TFS TFVC repo. 这实际上是本地git repo和集中式TFS TFVC repo之间的桥梁。 This article should get you started 本文应该帮助您入门

Both VSTS and TFS 2015 include full support for Git-based source control projects. VSTS和TFS 2015都完全支持基于Git的源代码控制项目。 You can follow MSDN article Share your code in Git using Xcode to push your project to TFS. 您可以关注MSDN文章,使用Xcode在Git中共享代码项目送到TFS。

After pushing your project to TFS, you'll have full history and work item available: 将项目推送到TFS后,您将拥有完整的历史记录和工作项:

在此处输入图片说明

在此处输入图片说明

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

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