Xcode upload code to GitHub

Source: Internet
Author: User
Reproduced from: http://blog.csdn.net/jasonblog/article/details/8141865
There are two ways to upload projects to GitHub:

First type:

1 first create the repository on the GitHub, copy the corresponding URL, the following figure red box shows



2 new project, check Options--source control-Create Git repository on, paste the copied address into server addresses



3 Add after the Xcode menu bar in the source control select the push can be


The second type:

A project has been created, but no create Git is selected, which requires terminal processing

1 cd/users/silverk/documents/Project/bltforswift

2 git init

3 git Add. (a bit)

4 git commit-m "Swift Bluetooth" ("" inside is interpreted, casually written)

5 finished reopen the project, in the Xcode menu bar, Source control--cheak out the next branch select Configure, add the corresponding URL

6: Don't forget to create a repository on the GitHub, for example Git@github.com:kodulf/xunfeidemo.git

7: Then add in remote here:


8: Select the push of source control

Reference URL:

Http://www.cnblogs.com/mzds/p/3723817.html

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.