How to add version control to an existing project in Xcode

Setting up a local GIT repository:

Open Terminal and change to the directory where your project is located (cd /path/to/your/project). Then use the following shell commands:

git init
git add .
git commit -m "my initial commit (or any other comment you feel like)"

NOTE: as of Mountain Lion you need to install the Xcode Command Line Tools for this to work (under Xcode Preferences – Downloads – Components).

Setting up a local SUBVERSION repository:

This content is for members only.

Jay is the founder of Pinkstone Pictures and WP Hosting. He has been developing iOS Apps since 2011, 9 of which have made it to the App Store. In his spare time he likes to develop WordPress plugins or drawing on tablet devices. He blogs about his coding journey at and