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 !!!