Uploading code to GitHub

Source: Internet
Author: User

I am a beginner, the record is a beginner encounter problems, when learning notes.

The previous use of GitHub, resulting in the development of the project code copy to copy, very troublesome, so I have to study how to upload code to GitHub, and project partners to share a warehouse, it is more convenient. Read a lot of information on the Internet, are used by the command line, more ugly understand, their own groping a bit how to operate on the graphical interface, and finally really successful. The following record is simply how to upload the local repository directly to the server, the other content later researched to continue to add.

Download a GitHub Mac client on your Mac, install it, run it, and enter your GitHub account password to log in. Then click on the File->add local Repository in the GitHub menu bar at the top of the screen to select your own project address (the project should already have a git local repository), add the project's warehouse on the client, But it's not yet created on the GitHub website. Select the warehouse you just added, click the Publish button in the top right corner of the GitHub Mac client, wait a while, and then create the GIT repository for the project on GitHub's website, but it's just an empty repository, and the code for the local project is not uploaded to the repository. We continue to click on the Repository->push in the GitHub menu bar at the top of the screen to submit the local code to the GitHub server. Once this is done, we can go back to Xcode and work directly in Xcode, and the code will be delivered directly to the server when commit,push,pull in Xcode.

Uploading code to GitHub

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.