Reproduced from: http://blog.csdn.net/jasonblog/article/details/8141865
There are two ways to upload projects to GitHub:
First type:
1 first create the repository on the GitHub, copy the corresponding URL, the following figure red box shows
2 new project, check Options--source control-Create Git repository on, paste the copied address into server addresses
3 Add after the Xcode menu bar in the source control select the push can be
The second type:
A project has been created, but no create Git is selected, which requires terminal processing
1 cd/users/silverk/documents/Project/bltforswift
2 git init
3 git Add. (a bit)
4 git commit-m "Swift Bluetooth" ("" inside is interpreted, casually written)
5 finished reopen the project, in the Xcode menu bar, Source control--cheak out the next branch select Configure, add the corresponding URL
6: Don't forget to create a repository on the GitHub, for example Git@github.com:kodulf/xunfeidemo.git
7: Then add in remote here:
8: Select the push of source control
Reference URL:
Http://www.cnblogs.com/mzds/p/3723817.html