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

Re: How to remove a commit object?

From
Johannes Sixt <j.sixt@viscovery.net>
Date
Oct 2, 2008, 15:02 UTC
Message-ID
<48E4E27E.7030308@viscovery.net>
In-Reply-To
<33f4f4d70810020726g71c6f39eq16585269fb268322@mail.gmail.com>
Klas Lindberg schrieb:
Show 9 quoted lines
> A solution to both problems seemed to be to use git-filter-branch to
> create a new repo by filtering out all the unwanted files. The
> astonishing result was that, for the subdirectory I tried it on, 90%
> or so of the commits on that subdirectory just disappeared. It didn't
> look right at all. Although I can't say for sure exactly what I did
> with filter-branch, I would appreciate some guidance for using it. It
> basically seemed to do exactly what I wanted (recreate the repo, minus
> some explicit stuff, with history intact otherwise), except the result
> looked crazy.
And your definition of 'crazy' is...?

I assume that you used --subdirectory-filter. This has issues that will be fixed in 1.6.1. You need a current 'master' git (at least b805ef08).

-- Hannes
Previous: Klas LindbergNext: Klas Lindberg
Message 9 of 11 in “How to remove a commit object?”
  1. Steven GrimmSep 18, 2008
  2. Michael J GruberSep 19, 2008
  3. Klas LindbergOct 2, 2008
  4. Michael J GruberOct 2, 2008
  5. Jakub NarebskiOct 2, 2008
  6. Klas LindbergOct 2, 2008
  7. Michael J GruberOct 2, 2008
  8. Klas LindbergOct 2, 2008
  9. Johannes SixtOct 2, 2008
  10. Klas LindbergOct 3, 2008
  11. Johannes SixtOct 3, 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.