經過Xcode將項目同步到GitHub上

主要參考這篇文章:http://www.mindthe.net/devices/2011/04/28/12-steps-to-using-github-with-xcode-4/ git

1. 在Xcode上新建一個Repositorygithub

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

分享到: 
相關文章
相關標籤/搜索