Today, the project dropped to the code cloud for management, encountered some comparison of the pain of the place, make a record, easy to query later.
The code cloud is virtually the same as GitHub, but it's free to set up a private project when you're doing a company project on a code cloud, seemingly on GitHub for a fee. This article is using Xcode's own git tool for code source management, you need to use the command line or other tools such as Sourcetree, please Baidu itself.
1, first to enter the code cloud, before creating the project need to register a code cloud account, login.
2. New Project
After the creation of a successful interface
The project created is not a project file, if you want to add a project:
1. Each time a new project is created in Xcode, the developer is prompted whether to use the project as a local git source. In the final step of creating the project, Xcode will have a check box, and if it is selected, the Git source will be added to the project directory.
To this step has been completed the code cloud on the project to local, if the original project was originally created locally, how to upload the project to the code cloud?
1. Drag the project file directly into the directory generated in the previous step:
Tip: Instead of dragging the entire file generated by the project (not tested), it is all sub-files in the project file directory.
Open the project, make a commit first, submit the project you just created, and you can develop it.
Development to a certain stage, want to submit to the local, the steps are as follows:
Want to push to the remote (Code cloud)
Go back to the code cloud and refresh the interface to see the code you just submitted.
2. If it is to be developed with your partner, you can get this to follow the above steps to pull down the project code to develop.
Summary of issues encountered:
1. If you encounter the following bullet box:
Open the terminal and follow the prompts and enter the following command:
git config--global user.name "(Developer's username)"
git config--global user.email "(optional)"
2. Always prompt for incorrect login and password when pulling down the project
The reason is that I think of this as the user name, is actually logged in when the mailbox, here pit me for more than 10 minutes, whining ... There's a hole in the back that will continue to fill up ....
Usage Summary of iOS code cloud