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

Converting from svn to git

From
DNDavid Neu <david@davidneu.com>
Date
Aug 10, 2008, 13:11 UTC
Message-ID
<e0b44a890808100611t27ddfcb6v21eecea89484c90b@mail.gmail.com>
Hi,

I'm trying to move an svn repo to git. I'm not going to be committing back to the svn repo, but will simply retire it and use git.

The issue I'm having is that the svn repo has sub directories that I'd like to be separate git repos.

I can easily accomplish this for the sub directories like this:

git-svn clone svn-url/subdir1 git-svn clone svn-url/subdir2 etc.

but for the files in the base directory
git-svn clone svn-url
pulls the entire directory tree.

Is there a git-svn strategy similar to git-svnimport -P that would do the trick? My git version 1.5.6.4 doesn't include git-svnimport, and I'm getting the impression it's be deprecated.

Many thanks for any help!

Cheers, David

Next: Miklos Vajna
Message 1 of 8 in “Converting from svn to git”
  1. David NeuAug 10, 2008
  2. Miklos VajnaAug 10, 2008
  3. David NeuAug 10, 2008
  4. Michael J GruberAug 10, 2008
  5. David NeuAug 10, 2008
  6. David NeuAug 11, 2008
  7. Michael J GruberAug 15, 2008
  8. Sam VilainAug 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.