简体   繁体   English

为什么我没有在Xcode源代码控制中获得master分支以在Swift中首次上载项目

[英]Why i am not getting master branch in Xcode source control to upload project in github for the first time in swift

i put check mark in xcode while creating project still i am not getting y master branch in source control to configure xcode project.. then how to upload xcode project in github. 我在创建项目时仍将复选标记放在xcode中,但我仍然没有在源代码控制中获得y master分支来配置xcode项目..然后如何在github中上传xcode项目。 please help me here. 请在这里帮助我。 first time i am uploading. 第一次上传。 i need to upload project in git hub. 我需要在git hub中上传项目。

在此处输入图片说明

在此处输入图片说明

在此处输入图片说明

Your project is already on a git repository. 您的项目已经在git仓库中。 Simply commit your changes first then push it to origin master 只需先提交更改,然后将其推送到原始主机

Source Control -> Commit will ask for message type any eg "Initial commit" 源代码管理->提交将要求任何消息类型,例如“初始提交” 在此处输入图片说明

Then Source Control -> Push 然后源代码控制->推

在此处输入图片说明

You need to add remote GitHub repo to your project. 您需要将远程GitHub存储库添加到您的项目中。

Please see the screenshot 请看截图

在此处输入图片说明

Either you can create a new one or you can add an existing repo to your local repo 您可以创建一个新的仓库,也可以将现有仓库添加到本地仓库

If your project is a Git repository then you can check your current repository by going to Source Control naigator like below. 如果您的项目是Git存储库,则可以通过转到如下所示的Source Control naigator来检查当前存储库。

在此处输入图片说明

If it is not a repo. 如果不是回购。 Then you can create new from Source Control menu like below. 然后,您可以从如下所示的“ Source Control菜单中创建新文件。

在此处输入图片说明

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

相关问题 为什么我在 Xcode 10.1 中出现 swift 编译器错误 - Why I am getting swift compiler error in Xcode 10.1 我在XCode 9中的“Source control navigator”下获得了两个项目源代码 - I am getting two projects source under “Source control navigator” in XCode 9 如何在 Xcode 中创建机器人? 获取“创建机器人需要一个受源代码控制的项目。” - How do I create a bot in Xcode? Getting "Creating a bot requires a project that is under source control." 为什么我在Xcode中得到NSRangeException - why am I getting NSRangeException in Xcode 在Xcode中将项目提交到源代码管理 - committing project to source control in Xcode 为什么我的Xcode项目中出现以下错误:没有这样的模块'SwiftyJSON'? - Why am I getting the following error in my Xcode project: No such module 'SwiftyJSON'? 为什么在xcode 7.2.1中创建项目存档时出现此链接器错误? - why am i getting this linker error while creating archive of my project in xcode 7.2.1 无法从XCode推送到Github master分支 - Can't push from XCode to Github master branch 在Xcode 5中,当我在源代码管理下添加服务器时收到错误 - In Xcode 5 getting error when i add the server under the source control 快速混合项目成功运行时,为什么会收到警告? - Why am I getting warnings when the swift mixed project runs successfully?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM