Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to enable Source Control in existing iOS project?

As in the topic - i have a project that doesn't have Source Control enabled, so how (and if) can i enable it now? I use Snapshots but the project became a big one, and now i need some more "pro" tools. I'm still rather an xcode beginner, so please explain it like i was a cow.

like image 659
cyborg86pl Avatar asked Jul 22 '13 14:07

cyborg86pl


2 Answers

First off you'll have to install the command line tools for github. You can do so from this link http://mac.github.com/, 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.

EDIT

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.

like image 154
heinst Avatar answered Sep 27 '22 15:09

heinst


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.

like image 35
Rob van der Veer Avatar answered Sep 27 '22 16:09

Rob van der Veer