Options for Xcode source control

Hello. I'm wondering if its possible to start xcode source control in the middle of a project? I'm fairly new to iOS and when I started my project I was just messing around. I would like to place my project under source control but it doesn't seem like I can. Is there a back door method or do I have to create a new project and add all my files?

Oh, is xcode's source control any good or is there something better? It looks to be based on git which seems to be the industry standard.

Thanks!

Posted Mar 25, 2014, 1:25 PM UTC

313
Herald_MJ•

'XCode Source Control' is git. You can start a new repo in the middle of a project by cd'ing to your project directory in a terminal and typing 'git init'.

8
redditbotboyOP•

Thanks!

1
tylerjames•

In addition to what u/Herald_MJ said you can sign up for GitHub or BitBucket to have your source hosted remotely. You can integrate your remote host right into Xcode's source control feature. That way you can back up your source to a remote server and it also helps for sharing and collaborating with others.

You might also look into downloading SourceTree, which is handy visual tool for managing your repos, and it also works with GitHub or BitBucket.

3
redditbotboyOP•

Thanks!

1
kielrene•

In addition to what people wrote about Github: remember that Github's free account only allows public repos (so your code is available to everyone on the web). Bitbucket allows private repos on their free account.

3
omfgtim_•

I really recommend BitBucket, not only for the private repositories (free up to a certain number of users), but they also have an issue tracker built in that acts as a lightweight version of JIRA.

2
fuckyoumetasyn•

Hopefully BitBucket treats their female employees with a bit more respect too.

2
redditbotboyOP•

Thanks!

1
rob311•

Thank you. I've been looking for a free alternative to githubs private repo

1
redditbotboyOP•

Thanks!

1
[deleted]•

Just do a git init in the project directory, or simply use Github's Mac app

2
redditbotboyOP•

Thanks!

1
redditbotboyOP•

Thanks all!

I'll look into BitBucket. It seems that's pretty popular. I also like that its private and remote so I have an offsite backup.

Thanks again!!!!

1