Loading multiple xCode projects to one GitHub repository?
September 27, 2012 2:11 PM Subscribe
Loading multiple xCode projects to one GitHub repository?
I am a complete newbie to iOS development, xCode, Git, GitHub - and Macs, for that matter. I am also a student, not a professional developer (and haven't posted this to stackoverflow for fear of ridicule). Google isn't helping, maybe because I don't know the right terminology or am just missing something very rudimentary - so rudimentary that it's not been discussed online...
I am using Git through the xCode GUI, not via command line.
I am trying to push multiple iOS projects up to a single GitHub respository. This repository has other collaborators. We have all been experimenting and getting to know iOS development, and we each have several little projects with local git respositories created on our local machines. For example, I have a project going where I play with switching amongst views, and another one where I'm experimenting with controls. I now want us to go ahead and push these individual projects to a repository I created on GitHub called 'Play'. I want it to be a sandbox where we try stuff out before we rev up to creating our app.
My problem is this: I can push one project up without a hitch. But when I try to push another project up to the repository, it wants me to pull the project that's already in the repo first. I don't want to do that. I want my projects to remain separate on my local machine.
I think my problem is that I'm essentially wanting Git to add a repository to a repository, which doesn't make sense and which it thus refuses to do. So, how do I get all these individual projects into one repository? I would really like to do this the 'right' way, rather than via some kind of workaround. And the most foolproof way, if possible.
I have experience with .NET projects in Team Foundation Server, if you want to/can draw analogies.
Thank you very kindly for your help. I've been at this for several hours and frankly, am going nuts.
posted by kitcat to technology (11 answers total) 1 user marked this as a favorite
GroupFolder/ProjectA
GroupFolder/ProjectB
GroupFolder/ProjectC
...
and then commit and push GroupFolder?
posted by DetriusXii at 2:16 PM on September 27, 2012