主要參考這篇文章:http://www.mindthe.net/devices/2011/04/28/12-steps-to-using-github-with-xcode-4/ git
1. 在Xcode上新建一個Repository: github
2. 獲取新建倉庫的SSH URL: xcode
3. 打開Xcode,選擇第二項Connect to a repository: spa
4. 把repository克隆到本地目錄下,好比桌面的TTImagePicker: .net
5. 新建一個Xcode工程,保存到剛纔新建的TTImagePicker目錄下。這裏不要勾選下面這個選項: code
6. 編輯工程,好比添加文件,編寫代碼之類的。 get
7. File -> Source Control -> Commit it
8. File -> Source Control -> Push im
完。 img