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

Pruning objects from history?

From
Steven Grimm <koreth@midwinter.com>
Date
Mar 31, 2007, 02:01 UTC
Message-ID
<460DC0F7.1070607@midwinter.com>

I've imported the full history of a large project from Subversion using the latest git-svn. The resulting repo is huge, and I believe it's due in large part to a series of big tar.gz files that got checked into the Subversion repository by mistake early in the project's history. They were subsequently removed from svn, but of course git-svn grabs them and puts them in my local history.

Is there any way to excise those files? They are of no interest to us now -- they were data files for a third-party application we ended up not using -- and they're making git look bad in the disk usage department.

I believe this has been asked before in the context of removing copyrighted content from public repositories. However, I have a twist that may make it easier: nobody else has cloned this repository yet. I am free to rewrite history with no risk of messing up any downstream repositories, and I don't have to worry about propagating the deletions out to anyone. I just don't know how to do it (assuming it's doable at all.)

Thanks!
-Steve
Next: Shawn O. Pearce
Message 1 of 4 in “Pruning objects from history?”
  1. Steven GrimmMar 31, 2007
  2. Shawn O. PearceMar 31, 2007
  3. Theodore TsoMar 31, 2007
  4. Linus TorvaldsMar 31, 2007

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.