- Create a new repo on GitHub (ensure you have configured your ssh keys on your mac well with GitHub)
- Create a new project using Xcode, placing it into local ~/git/ folder
- In Xcode, choose menu Source Control | {project} - master | Configure {project} ...
- In the dialog box | Remotes, click “+” | Add Remote … to add a new remote with:
Name: origin
Address: git@github.com:hmisty/{project}.git - In Xcode, choose menu Source Control | Push …
- In the dialog box, it says Push local changes to origin/master (Create). Just click Push.
- In the prompt dialog for entering your credentials for the repository ‘{project}’ on host ‘github.com’, choose:
Authentication: SSH Keys
User Name: / Public Key: / Private Key: are all loaded successfully and you cannot change them.
Passphrase: type in your passphrase here.
Click OK. - Done. Painless.
无痛!xcode连接github
最后编辑于 :
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。
推荐阅读更多精彩内容
- afinalAfinal是一个android的ioc,orm框架 https://github.com/yangf...
- WebSocket-Swift Starscream的使用 WebSocket 是 HTML5 一种新的协议。它实...
- 如果让我推荐一本书,今年我要推荐的第一本一定是伍绮诗的《无声告白》。一本畅销榜上的书,很多人推荐,必定有其畅销和被...