<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
     xmlns:admin="http://webns.net/mvcb/"
     xmlns:content="http://purl.org/rss/1.0/modules/content/"
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
	<channel> 

	<title>Comments on: Loading multiple xCode projects to one GitHub repository?</title>
	<link>http://ask.metafilter.com/225454/Loading-multiple-xCode-projects-to-one-GitHub-repository/</link>
	<description>Comments on Ask MetaFilter post Loading multiple xCode projects to one GitHub repository?</description>
	<pubDate>Thu, 27 Sep 2012 14:11:44 -0800</pubDate>
	<lastBuildDate>Thu, 27 Sep 2012 14:16:27 -0800</lastBuildDate>
	<language>en-us</language>
	<docs>http://blogs.law.harvard.edu/tech/rss</docs>
	<ttl>60</ttl>

	<item>
		<title>Question: Loading multiple xCode projects to one GitHub repository?</title>
		<link>http://ask.metafilter.com/225454/Loading-multiple-xCode-projects-to-one-GitHub-repository</link>	
		<description>Loading multiple xCode projects to one GitHub repository? &lt;br /&gt;&lt;br /&gt; 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&apos;t posted this to stackoverflow for fear of ridicule). Google isn&apos;t helping, maybe because I don&apos;t know the right terminology or am just missing something very rudimentary - so rudimentary that it&apos;s not been discussed online...&lt;br&gt;
&lt;br&gt;
I am using Git through the xCode GUI, not via command line.&lt;br&gt;
&lt;br&gt;
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&apos;m experimenting with controls. I now want us to go ahead and push these individual projects to a repository I created on GitHub called &apos;Play&apos;. I want it to be a sandbox where we try stuff out  before we rev up to creating our app.&lt;br&gt;
&lt;br&gt;
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&apos;s already in the repo first. &lt;em&gt;I don&apos;t want to do that. I want my projects to remain separate on my local machine.&lt;/em&gt; &lt;br&gt;
&lt;br&gt;
I think my problem is that I&apos;m essentially wanting Git to add a repository to a repository, which doesn&apos;t make sense and which it thus refuses to do. So, how &lt;em&gt;do&lt;/em&gt; I get all these individual projects into one repository? I would really like to do this the &apos;right&apos; way, rather than via some kind of workaround. And the most foolproof way, if possible. &lt;br&gt;
&lt;br&gt;
I have experience with .NET projects in Team Foundation Server, if you want to/can draw analogies. &lt;br&gt;
&lt;br&gt;
Thank you very kindly for your help. I&apos;ve been at this for several hours and frankly, am going nuts.</description>
		<guid isPermaLink="false">post:ask.metafilter.com,2012:site.225454</guid>
		<pubDate>Thu, 27 Sep 2012 14:11:44 -0800</pubDate>
		<dc:creator>kitcat</dc:creator>
		
			<category>iOSdevelopment</category>
		
			<category>xCode</category>
		
			<category>versioncontrol</category>
		
			<category>git</category>
		
			<category>github</category>
		
	</item>
	<item>
		<title>By: DetriusXii</title>
		<link>http://ask.metafilter.com/225454/Loading-multiple-xCode-projects-to-one-GitHub-repository#3262127</link>	
		<description>Can you not move your individual projects into a common folder like so?&lt;br&gt;
&lt;br&gt;
GroupFolder/ProjectA&lt;br&gt;
GroupFolder/ProjectB&lt;br&gt;
GroupFolder/ProjectC&lt;br&gt;
...&lt;br&gt;
&lt;br&gt;
and then commit and push GroupFolder?</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2012:site.225454-3262127</guid>
		<pubDate>Thu, 27 Sep 2012 14:16:27 -0800</pubDate>
		<dc:creator>DetriusXii</dc:creator>
	</item><item>
		<title>By: kitcat</title>
		<link>http://ask.metafilter.com/225454/Loading-multiple-xCode-projects-to-one-GitHub-repository#3262138</link>	
		<description>DetriusXii:&lt;br&gt;
&lt;br&gt;
er..so you are suggesting that I make a directory (via the mac OS) and push and pull that directory? If I do that, I will not be able to do pushes from xCode, correct? And every time I alter some code, I will have to copy the altered project files to that folder and then push the changes up?</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2012:site.225454-3262138</guid>
		<pubDate>Thu, 27 Sep 2012 14:28:04 -0800</pubDate>
		<dc:creator>kitcat</dc:creator>
	</item><item>
		<title>By: DetriusXii</title>
		<link>http://ask.metafilter.com/225454/Loading-multiple-xCode-projects-to-one-GitHub-repository#3262150</link>	
		<description>I&apos;m not sure with xCode, but you could still use the command line tools available to pull and push.  I forget the Git client available for Mac OS, but you can type the commands&lt;br&gt;
&lt;br&gt;
cd GroupFolder&lt;br&gt;
git commit -a -m &quot;Here is my commit message&quot;&lt;br&gt;
git push&lt;br&gt;
&lt;br&gt;
on a command line when you&apos;re ready to push.&lt;br&gt;
&lt;br&gt;
I would doubt that xCode would give you the option to push individual projects into a GIT repository as it likely makes some assumptions between the relationship of projects and repositories.   I usually keep a terminal window open when I develop just for Git commits.  I didn&apos;t use xCode to manage my Git repositories when I was in the iPhone development world.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2012:site.225454-3262150</guid>
		<pubDate>Thu, 27 Sep 2012 14:38:29 -0800</pubDate>
		<dc:creator>DetriusXii</dc:creator>
	</item><item>
		<title>By: duien</title>
		<link>http://ask.metafilter.com/225454/Loading-multiple-xCode-projects-to-one-GitHub-repository#3262152</link>	
		<description>&lt;small&gt;Caveat: I don&apos;t use XCode, so I may be making incorrect assumptions about it&lt;/small&gt;&lt;br&gt;
&lt;br&gt;
What you want to do is possible, but there&apos;s some potential complications. The ways I can see doing it (in order of how close they are to what you&apos;re asking, and, coincidentally, reverse order of ease) are:&lt;br&gt;
&lt;br&gt;
1. Create a a new git repository called &quot;Play&quot; and add your other git repositories to it as submodules. This is complicated and error-prone even for a git whiz. I really can&apos;t recommend it.&lt;br&gt;
&lt;br&gt;
2. Do what DetriusXii suggested and put them all in a folder, then check in that folder. You&apos;ve already identified the problem there -- you loose the XCode git integration. This is actually a pretty decent option, since you can just use Github&apos;s app instead of the XCode integration.&lt;br&gt;
&lt;br&gt;
3. Give up on putting it all in one repo. This is what I&apos;d recommend, since it means you&apos;re not fighting your tools.&lt;br&gt;
&lt;br&gt;
The best choice will probably depend on &lt;b&gt;why&lt;/b&gt; you don&apos;t want to put them in separate repos. Could you elaborate? I&apos;d be happy to expand further on whatever option sounds best.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2012:site.225454-3262152</guid>
		<pubDate>Thu, 27 Sep 2012 14:38:52 -0800</pubDate>
		<dc:creator>duien</dc:creator>
	</item><item>
		<title>By: kitcat</title>
		<link>http://ask.metafilter.com/225454/Loading-multiple-xCode-projects-to-one-GitHub-repository#3262163</link>	
		<description>I guess the reason I don&apos;t want to put them in separate repos is that a) I only have so many repos available with my account (these are private since we are eventually developing a commercial app) and b) it just seems dumb to have a repo for &quot;kitcat&apos;s crappy experiment with creating pickers programmatically&quot;.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2012:site.225454-3262163</guid>
		<pubDate>Thu, 27 Sep 2012 14:46:49 -0800</pubDate>
		<dc:creator>kitcat</dc:creator>
	</item><item>
		<title>By: brennen</title>
		<link>http://ask.metafilter.com/225454/Loading-multiple-xCode-projects-to-one-GitHub-repository#3262187</link>	
		<description>&lt;i&gt;I guess the reason I don&apos;t want to put them in separate repos is that a) I only have so many repos available with my account (these are private since we are eventually developing a commercial app) &lt;/i&gt;&lt;br&gt;
&lt;br&gt;
If you ask GitHub nicely and really can&apos;t afford the monthly charge for more private repos, they may help you out, although by policy they might not do this for commercial projects. (I&apos;m not entirely sure on that point.)&lt;br&gt;
&lt;br&gt;
&lt;i&gt;and b) it just seems dumb to have a repo for &quot;kitcat&apos;s crappy experiment with creating pickers programmatically&quot;.&lt;/i&gt;&lt;br&gt;
&lt;br&gt;
One of the advantages of a DVCS like git and GitHub as a hosting platform is that both are very well-suited to small, one-off repositories. I pretty much start one for anything bigger than a one-liner that isn&apos;t already part of some other project. I&apos;d encourage this approach.&lt;br&gt;
&lt;br&gt;
I will echo the sentiment that submodules should be avoided generally. There are narrow use cases where they&apos;re really the only good fit, but the submodule stuff is utterly miserable to deal with and is just full of sharp edges.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2012:site.225454-3262187</guid>
		<pubDate>Thu, 27 Sep 2012 15:07:30 -0800</pubDate>
		<dc:creator>brennen</dc:creator>
	</item><item>
		<title>By: jeffamaphone</title>
		<link>http://ask.metafilter.com/225454/Loading-multiple-xCode-projects-to-one-GitHub-repository#3262190</link>	
		<description>Don&apos;t fear ridicule on StackOverflow.  Your question is valid.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2012:site.225454-3262190</guid>
		<pubDate>Thu, 27 Sep 2012 15:10:01 -0800</pubDate>
		<dc:creator>jeffamaphone</dc:creator>
	</item><item>
		<title>By: kitcat</title>
		<link>http://ask.metafilter.com/225454/Loading-multiple-xCode-projects-to-one-GitHub-repository#3262201</link>	
		<description>Thank you so much for your help. I think that the first solution put out by DetriusXii and the &quot;Give up, use separate repos&quot; are equally good solutions. I may just try both and see which works out better for us. I&apos;m working on adding a folder containing multiple projects and it&apos;s going ok, but I&apos;ve run up against an error trying to pull from the master branch (Play/master does not appear to be a git repository). If this takes me too much time to sort out, I may go back to the xCode integration/multiple repositories solution.&lt;br&gt;
&lt;br&gt;
It&apos;s nice to know that my question was valid and that there are indeed solutions! Thanks again.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2012:site.225454-3262201</guid>
		<pubDate>Thu, 27 Sep 2012 15:22:29 -0800</pubDate>
		<dc:creator>kitcat</dc:creator>
	</item><item>
		<title>By: DetriusXii</title>
		<link>http://ask.metafilter.com/225454/Loading-multiple-xCode-projects-to-one-GitHub-repository#3262225</link>	
		<description>You may want to look into BitBucket also.  They offer free private repositories with some restrictions on the amount of users that can be added to the repository.  They support both Mercurial and Git as version control systems.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2012:site.225454-3262225</guid>
		<pubDate>Thu, 27 Sep 2012 15:41:54 -0800</pubDate>
		<dc:creator>DetriusXii</dc:creator>
	</item><item>
		<title>By: kitcat</title>
		<link>http://ask.metafilter.com/225454/Loading-multiple-xCode-projects-to-one-GitHub-repository#3262256</link>	
		<description>You know know, I even wonder whether DropBox might be a better option for the sandbox projects. We could wait until real development starts before using GitHub or what have you.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2012:site.225454-3262256</guid>
		<pubDate>Thu, 27 Sep 2012 16:05:16 -0800</pubDate>
		<dc:creator>kitcat</dc:creator>
	</item><item>
		<title>By: agregoire</title>
		<link>http://ask.metafilter.com/225454/Loading-multiple-xCode-projects-to-one-GitHub-repository#3262376</link>	
		<description>I&apos;d start using Git right away if I were you (instead of Dropbox). A big part of what you&apos;re going to do later will involve source code management and you&apos;d be better off making mistakes and fixing them now on a less important project !&lt;br&gt;
&lt;br&gt;
Concerning your project, I&apos;d do what DetriusXii told you in the first answer and use Github&apos;s app or even the command line to manage your Git operations. It&apos;s not that hard and you&apos;ll learn about Git at the same time.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2012:site.225454-3262376</guid>
		<pubDate>Thu, 27 Sep 2012 18:09:47 -0800</pubDate>
		<dc:creator>agregoire</dc:creator>
	</item>
	</channel>
</rss>
