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

Migrating a git repository to subversion

From
AMAlf Mikula <amikula@gmail.com>
Date
May 15, 2008, 23:08 UTC
Message-ID
<42dc968d0805151608q2ed89fc8madcd8d341a4ed1df@mail.gmail.com>

I'm a relatively new (2 weeks) user of Git, and so far I really love it, and I want to educate my co-workers about it.

Having said that, I want to demonstrate git's git<--->svn capabilities, and currently everybody here has and understands Subversion. So, I want to initialize a Subversion repository with my git history from my local git repository. Here's what I tried:

1. Create a new, empty subversion project with trunk/tags/branches subdirs.
2. git svn clone http://myhost.com/path/to/project --stdlayout
3. git pull ../git_project
4. git svn dcommit

This put all my files into Subversion, but under a single commit. Is there a step I'm missing that would allow git to commit all my individual git commits to the Subversion repository? I've done a bunch of searches, but all the docs seem to focus on cloning an existing svn repository, as opposed to exporting git repositories to Subversion.

Thanks in advance,
-Alf
Next: Avery Pennarun
Message 1 of 7 in “Migrating a git repository to subversion”
  1. Alf MikulaMay 15, 2008
  2. Avery PennarunMay 15, 2008
  3. Björn SteinbrinkMay 15, 2008
  4. Linus TorvaldsMay 16, 2008
  5. Martin LanghoffMay 16, 2008
  6. Alf MikulaMay 16, 2008
  7. Imran M YousufMay 16, 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.