Use GitHub to build your own code warehouse under Mac

Source: Internet
Author: User

Many programmers will build their own github, as for the role of GitHub I am not here to repeat the words, not much to say, directly introduced. (equivalent to your private SVN)

First, we want to create a GitHub account, direct Niang GitHub into the official website, with email registration;

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

And, create ssh:

Open terminal, enter the CD ~/.ssh, always enter, during the drug you enter the password, the default can not enter, press ENTER on the line

Finally, go to the. ssh file directory,/users/.ssh/id_rsa.pub, locate the Id_rsa.pub file, open it with Notepad, and copy the content, where. SSH is a hidden file, as for how to display Mac hidden files, go Baidu, haha!

Login to GitHub, Select Account settings-->ssh Keys to add SSH

Title:[email protected] Key: Open the Id_rsa.pub file you generated and copy the contents to this point.

1. Create a code warehouse:Open the GitHub client and click on the top left corner + button to create a new code repository or clone your code locally (equivalent to SVN's checkout)2, submit the code, click Commit&sync Submit to GitHub
3, good, your code warehouse has been built, and later to modify the direct cloning can be, but GitHub server in foreign countries, like Apple server, sometimes difficult to connect up!!!

Use GitHub to build your own code warehouse under Mac

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.