<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">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 class=""><div class="h5"><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 style>Thanks Olaf, </div><div style><br></div><div style>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 style><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" style>Thanks</div><div class="gmail_quote" style><br></div></div></div>