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

SVN -> Git *but* with special changes

From
AAbscissa <bus_nabble_git@semitwist.com>
Date
Sep 28, 2011, 16:37 UTC
Message-ID
<1317227849979-6840904.post@n2.nabble.com>

I have a couple big projects in SVN that I'd like to convert to Git. Being in SVN, they've operated under a couple assumptions that are not true under Git. These assumptions are:

1. Directories can exist even if there's nothing in them (just like any
filesystem).
2. Keeping binary files in version control isn't a big deal because the
whole repo doesn't get copied to everyone's system or use up people's GitHub
storage space.

The SVN repos have been relying on those, but both are false under Git, so I need to do a "modified" conversion, rather than just a straight one.

So, how can I convert an SVN repo to Git, and have the conversion add dummy files to empty directories and exclude specific files? (Also, there are tags and branches to be converted too, in the SVN-standard "tags" and "branches" directories.)

-- View this message in context: http://git.661346.n2.nabble.com/SVN-Git-but-with-special-changes-tp6840904p6840904.html Sent from the git mailing list archive at Nabble.com.

Next: Stephen Bash
Message 1 of 21 in “SVN -> Git *but* with special changes”
  1. AbscissaSep 28, 2011
  2. Stephen BashSep 28, 2011
  3. Matthieu MoySep 28, 2011
  4. Jeff KingSep 28, 2011
  5. AbscissaSep 28, 2011
  6. AbscissaJan 7, 2012
  7. Jeff KingSep 28, 2011
  8. AbscissaJan 8, 2012
  9. Jeff KingJan 8, 2012
  10. AbscissaJan 8, 2012
  11. AbscissaJan 8, 2012
  12. Carlos Martín NietoJan 8, 2012
  13. Andreas SchwabJan 8, 2012
  14. Adam BorowskiJan 8, 2012
  15. AbscissaJan 8, 2012
  16. AbscissaJan 8, 2012
  17. AbscissaJan 12, 2012
  18. AbscissaJan 14, 2012
  19. Michael HaggertyJan 9, 2012
  20. Thomas HochsteinJan 8, 2012
  21. Thomas HochsteinJan 8, 2012

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.