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

Re: SVN -> Git *but* with special changes

From
Jeff King <peff@peff.net>
Date
Sep 28, 2011, 19:07 UTC
Message-ID
<20110928190716.GD1482@sigill.intra.peff.net>
In-Reply-To
<vpq62kc36kn.fsf@bauges.imag.fr>
On Wed, Sep 28, 2011 at 07:44:24PM +0200, Matthieu Moy wrote:
Show 7 quoted lines
> > I'd eliminate these on the SVN side before converting to Git. If you
> > have svnadmin access to the SVN repo svnadmin dump, svndumpfilter,
> > svnadmin load is a pretty easy process.
> 
> Otherwise, you can do it on the Git side with:
> 
>   git filter-branch --tree-filter 'rm -f some-large-blob'
It's much more efficient to do:
    git filter-branch --index-filter \
      'git rm --cached --ignore-unmatch some-large-blob'

which avoids checking out the large files over and over[1], just to delete them. Of course, it's even more efficient not to import them from svn in the first place. :)

-Peff
[1] This is straight from the filter-branch manpage, btw.
Previous: Matthieu MoyNext: Abscissa
Message 4 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.