Antonio,<br>You would want to use git subtree for this use case: <a href="http://git-scm.com/book/ch6-7.html" target="_blank">http://git-scm.com/book/ch6-7.html</a> (Antonio, sorry for the double send. meant to reply-all).<br>
<br>Cheers,<br>Matt<br><br><div class="gmail_quote">On Thu, Jan 17, 2013 at 12:12 PM, Antonio Sun <span dir="ltr"><<a href="mailto:antoniosun@lavabit.com" target="_blank">antoniosun@lavabit.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote"><div class="im">On Thu, Jan 17, 2013 at 11:22 AM, Olaf Alders <span dir="ltr"><<a href="mailto:olaf.alders@gmail.com" target="_blank">olaf.alders@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div><div><br>> An off-topic question on Git -- how to put my locally managed Git repo under a sub-folder of another remote Git repo?<br>
><br>
> My locally managed Git repo was created totally locally, without any remote repo. Now I hope everything, including the histories, can show up under a sub-folder of another remote Git repo.<br>
<br>
<br>
</div></div>Hi Antonio,<br>
<br>
I think you want "git submodule".<br>
<br>
<a href="http://git-scm.com/book/en/Git-Tools-Submodules" target="_blank">http://git-scm.com/book/en/Git-Tools-Submodules</a><br>
</blockquote><div><br></div></div><div>Thanks Olaf, </div><div><br></div><div>That's not quite what I was looking for. For git submodule, "<span style="background-color:rgb(252,252,250);color:rgb(78,68,60);font-family:Georgia,'Times New Roman',serif;font-size:14px;line-height:22px">you want to be able to treat the two projects as <b>separate </b>yet still be able to use one from within the other. . . </span><span style="background-color:rgb(252,252,250);color:rgb(78,68,60);font-family:Georgia,'Times New Roman',serif;font-size:14px;line-height:22px">Submodules allow you to keep a Git repository as a subdirectory of another Git repository. This lets you clone another repository into your project and keep your commits separate.</span>" </div>
<div><br></div>I wasn't able to find a remote repo for my local repo until recently, now I just want to give my local repo a remote repo, but should be under a sub folder. Afterward, there would be only one <b>combined </b>repo. Would that be possible? </div>
<div class="gmail_quote"><br></div><div class="gmail_quote">Thanks</div><div class="gmail_quote"><br></div></div></div>
<br>_______________________________________________<br>
toronto-pm mailing list<br>
<a href="mailto:toronto-pm@pm.org">toronto-pm@pm.org</a><br>
<a href="http://mail.pm.org/mailman/listinfo/toronto-pm" target="_blank">http://mail.pm.org/mailman/listinfo/toronto-pm</a><br>
<br></blockquote></div><br>