Use GitHub to build your own code repository on MAC, macgithub

Source: Internet
Author: User

Use GitHub to build your own code repository on MAC, macgithub

Many programmers will create their own GitHub. As for the role of GitHub, I will not repeat it here. I will not talk much about it, but I will introduce it directly. (Equivalent to your private SVN)

First, we need to create a GitHub account to directly go to the GitHub official website and register it with an email address;

Second, download the GitHub client http://pan.baidu.com/s/1ntn4sQ1

And, create ssh:

Open the terminal and enter cd ~ /. Ssh, always press Enter. You can enter the password when taking the medicine. By default, you can leave it blank. Press enter.

Finally go. ssh file directory,/Users /. ssh/id_rsa.pub, find the id_rsa.pub file, open it in notepad, and copy the content. ssh is a hidden file. For how to show hidden mac files, go to Baidu, haha!

Log on to GitHub and select Account Settings --> SSH Keys to add ssh

Title: xxxxx@gmail.com Key: Open your generated id_rsa.pub file and copy the content to this point.

1. Create a code repository: Open the gitHub client and click the plus sign button in the upper left corner to create a new code repository or clone your code locally (equivalent to the svn checkout) 2. Submit the code and Click commit & sync to submit it to gitHub.
3. Well, your code repository has been built and you can directly clone it after modification. However, the gitHub server is abroad and sometimes difficult to connect like an Apple Server !!!

Related Article

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.