git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: How do I..?

From
PHPeter Harris <git@peter.is-a-geek.org>
Date
Dec 17, 2008, 23:44 UTC
Message-ID
<eaa105840812171544i53e8a751s70ad495bb6a86160@mail.gmail.com>
In-Reply-To
<e1a4c7f60812171516h7b7bb1fem35dfc6f30747a740@mail.gmail.com>
On Wed, Dec 17, 2008 at 6:16 PM, Dylan Martin wrote:
Show 8 quoted lines
> Before I switched to git, I played around with SVN a bit, and started
> a few tiny SVN repos for various scripts I was working on.  So, I know
> have one git repo with %90 of my stuff and a handful of SVN repos.
> I'd like to be able to add the SVN repos as subdirectories inside my
> git repo.  I've found lots of pages describing how to convert an SVN
> repo into a _new_ git repo, but I haven't found anything yet about
> importing the contents of an SVN repo as a subdirectory of an
> _existing_ git repo.

You could convert each SVN repo into its own temporary git repo, then use the subtree merge strategy to combine the git trees: http://www.kernel.org/pub/software/scm/git/docs/howto/using-merge-subtree.html

Peter Harris
Previous: Dylan MartinNext: Miklos Vajna
Message 2 of 3 in “How do I..?”
  1. Dylan MartinDec 17, 2008
  2. Peter HarrisDec 17, 2008
  3. Miklos VajnaDec 17, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.