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