How to enable Source Control in existing iOS project?

3 Solutions Collect From Internet About “How to enable Source Control in existing iOS project?”

First off you’ll have to install the command line tools for github. You can do so from this link, then either during setup it will ask you to install command line tools, or if it doesn’t, you can do it from the preferences menu. Once this is completed, you will be able to follow the instructions on this website to convert your project: conversion tutorial. After all that is done, this website explains everything you could possibly want to know about Source Control and all you can do with it.


If you do not want to install github for the command line tools, you can install Homebrew, which is a package manager (macs equivalent to apt-get), then run brew install git for the latest version of git.

After doing a git init,go you the projects tab in the Organizer (top right corner in xcode) There remove the reference to your project and restart xcode to update the changes. Removing the project from Organizer will not delete any files, it will only clear the caches.

I am not sure how to do this from within XCode, but if you are on OSX you can easily initialize git from the command line (within Terminal). From the base directory of the project invoke git init.

Once the project is associated with a git repository, XCode should recognize that and you will see the project listed among the repositories in XCode’s Organizer (available from the Window -> Organizer menu)

To upload the project into github, look at the directions here: