參考網站
Xcode 內建了git 可以簡易的做版本控制
在建立專案後有勾選使用 local Git ,
檔案有修改後 , 可以在檔案名稱後 看到 "M" 的標記.
新增的檔案也會有 "A" 的標記.
選取檔案, 右鍵 選取 Souce Controll -> Commit Selected Files
填寫 Commit Message 後 送出.
之後就可以在編輯器中選 Show the Version Editor
比對兩版本的差異.
如果一開始沒有設定後續要進行追加 loacl git 的設定,要進入 console 輸入一些指令:
回覆刪除15 Responses to “How to Create Git Repos for Existing Xcode Projects”
Paddy Says:
March 16th, 2011 at 2:05 pm
1. Close the project (possibly xcode, cannot confirm)
2. Open terminal
3. Navigate to project directory
4. $ git init
5. $ git commit -a -m "Initial commit" (Possibly not necessary)
6. Open project in Xcode and enjoy git goodness
----
資訊來源來自:http://ashfurrow.com/2011/03/how-to-create-git-repos-for-existing-xcode-projects/
http://developer.apple.com/library/mac/#documentation/ToolsLanguages/Conceptual/Xcode4UserGuide/SCM/SCM.html
回覆刪除