A detailed tutorial on Xcode and GitHub!

Source: Internet
Author: User

Detailed tutorials for Xcode and GitHub!

Mainly refer to some of the information on the Internet now to the people who did not complete a detailed guide.

(1) First register your account on GitHub and resolve it yourself!

(2) in the upper right corner of the navigation bar, a new repository (warehouse).


(3) Fill in the warehouse name, description and other information. The second part is to set up public or private projects, which are appropriate for the company's code hosting but are charged.


(4) The following is not the tube, on the Mac computer generated your SSH key, reproduced here http://www.cnblogs.com/sorex/archive/2012/05/25/2517763.html.

jomatomac-mini:~sorex1984$ ssh-keygen-t rsa-c "[email protected]"
generating public/private RSA key pair.
Enter file in which to save the key (/users/sorex1984/.ssh/id_rsa):ABCDE[filename, if ABCDE file is not filled in, the id_rsa file will be generated by default]
Enter Passphrase (empty for no passphrase):[password must be greater than 4 bits]
Enter same passphrase again:[Enter password again]
Your identification have been saved in ABCDE.
Your Public Key had been saved in Abcde.pub.
The key fingerprint is:
ea:74:df:7d:29:de:c9:37:80:49:be:d9:5c:9e:03:94[email protected]
The key ' s randomart image is:
+--[RSA 2048]----+
| |
| |
|  . |
| . E |
| S O + |
|   . + O. |
|   O. = = o|
| O. . + =o*+|
|   . . o.o=+|
+-----------------+

Then on the computer command+shift+g go to "/users/sorex1984/.ssh/" under this folder:


(5) Open id_rsa.pub This file, copy the contents of the file to GitHub "account setting" SSH keys "Add ssh key":


(6) Point to open the project the SSH URL address is copied out in the client can be used.

(7) Create a new project and select the second one. [Email protected]:d Aleiwang/helloproject.git



(8) Fill in the address and map the folder of this item on GitHub to a local folder.


(9) Create a new project and save it to the local helloproject below. Click "Source Controller" Commit. Submit the project.


(10) Click Source Controller "Push"


(11) The final project has been submitted to GitHub.



The first time with git, used to be used svn,git unfamiliar, this blog is mainly reference to other people's blog plus their own little groping. If you have any questions, wish to advise!

A detailed tutorial on Xcode and 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.