This article takes open source China as an example, upload to GitHub can use a similar method, because they are all using git this version control system. The use of private items on GitHub will be charged, while open source China is free. Recommend everyone support domestic!
Create an open source account in China
- Address Https://git.oschina.net/signup
- Be careful not to use QQ mailbox, because receiving mail will not be timely
Create a project
- Two configuration files are automatically generated when the creation is complete
Setting the Public key
Purpose of setting the public key: do not use each push code to the server to lose the password
Enter terminal, switch directory
- Setting the public key on Oschina
Cloning a project to a local
- Copy the SSH address of the project
- Use Xcode to create a new project, the project directory Select the folder you just created, navigate to the folder, you will find the following settings git check box is not selected, which means that the directory has git already
Write code, submit!
* Note tick the check box in the diagram to indicate that it is submitted to the server
View Submission Results
Step by step how to deploy your project to open source sites such as open source China