Skip to content
November 2, 2011 / windperson

將Xcode 4的現存專案加入git SCM的方法

1.開啟Terminal,將目錄切換至該專案的主目錄下(可在Finder將該目錄直接拖曳到Terminal的圖示上,就會自動開啓至該目錄)

2.在Terminal視窗執行命令:git init

3.依照這個blog的說明修改Working Directory(專案主目錄)的.gitignore檔案。

4.在Terminal視窗執行命令:git add .

5.在Terminal視窗執行命令:git commit -m “[隨你高興的commit message]”

重開Xcode之後就可以在Organizer視窗的Repositories分頁上看到該git repository。

Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: