将代码从Xcode推送到Visual Studio Team Service [英] Pushing code from Xcode to Visual Studio Team Service

查看:122
本文介绍了将代码从Xcode推送到Visual Studio Team Service的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将源代码推送到Visual Studio Team Services. 当我推送代码时,我从Xcode收到以下错误. 源控制操作失败,因为URL" https://test.visualstudio.com/DefaultCollection/_git/myProj "不能与Git一起使用.

I am trying to push my source code to Visual Studio Team Services. When i push my code i got the following error from Xcode. The source control operation failed because the URL "https://test.visualstudio.com/DefaultCollection/_git/myProj" cannot be used with Git.

我尝试过的事情: 1.使用远程名称:起源,位置:" https://test.visualstudio">创建远程起源. com/DefaultCollection/_git/myProj " 2.提交后我无法推送我的代码

Things which i tried: 1.Create Remote origin with Remote Name: Origin, Location: "https://test.visualstudio.com/DefaultCollection/_git/myProj" 2.After commit i can't push my code

推荐答案

请检查以下步骤,以查看是否遗漏了任何内容:

Please check the following steps, to see whether you have missed anything:

  1. 为您的Xcode项目创建本地Git存储库.通过转到源代码控制创建工作副本 ...,为不在版本控制中的现有项目创建本地Git存储库.选择要添加到本地Git存储库的项目,然后选择创建. Xcode为您的代码创建一个Git存储库,并为您的项目文件添加一个提交.
  1. Create a local Git repo for your Xcode project. Create a local Git repo for your existing projects not in version control by going to Source Control, Create Working Copy... . Select the projects to add to the local Git repo and select Create. Xcode creates a Git repo for your code and adds a commit with your project files.

  1. 在VSTS中为您的Xcode项目创建一个新的Git存储库.看来您已经创建了一个https://test.visualstudio.com/DefaultCollection/_git/myProj.

推送您的项目.

您可以参考下面的链接以获取更多信息:

You can refer to the link below for more information:

https ://docs.microsoft.com/zh-cn/vsts/git/share-your-code-in-git-xcode?view = vsts

这篇关于将代码从Xcode推送到Visual Studio Team Service的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆