简体   繁体   English

将Xcode项目推送到TFS Git存储库

[英]Push Xcode Project to TFS Git repository

Trying to push Xcode project to TFS (Git repository), i created local repository for my project in Xcode, then install Git Credential Manager from GitHub, then trying to connect repository from Xcode by adding remote or connect to git repository, but the error message is "Authentication failed because the authentication credentials were rejected." 尝试将Xcode项目推送到TFS(Git存储库),我在Xcode中为我的项目创建了本地存储库,然后从GitHub安装Git Credential Manager,然后尝试通过添加远程或连接到git存储库来连接Xcode存储库,但错误消息是“身份验证失败,因为身份验证凭据被拒绝。” Would you please provide me with the correct steps. 你能否告诉我正确的步骤。 Knowing that TFS 2015 & Xcode 8.2 知道TFS 2015和Xcode 8.2

The easiest solution for me was to just add your local repository with command line. 对我来说最简单的解决方案是使用命令行添加本地存储库。

git remote add origin ADRESSOFREPO

Afterwards you can use the version control in Xcode to push and pull 之后,您可以使用Xcode中的版本控制进行推拉

TFS 2017 offers you SSH access. TFS 2017为您提供SSH访问。 The earlier versions, like 2015, requires to setup SSL and Basic Authentication on the server. 早期版本(如2015)需要在服务器上设置SSL和基本身份验证。 I guess that this is not properly configured for you. 我想这没有为您正确配置。

The steps to setup SSL are described in details in the docs . 设置SSL的步骤在文档中有详细描述。 Here you can find what is required to configure Basic Authentication. 您可以在此处找到配置基本身份验证所需的内容。

A couple of caveats: 几点需要注意:

  • username should be entered in domain\\user\u003c/code> format 用户名应以domain\\user\u003c/code>格式输入
  • do not enable Basic Authentication on the default non-SSL site 不要在默认的非SSL站点上启用基本身份验证

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

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