Re: How to remove a commit object?
- From
Michael J Gruber <git@drmicha.warpmail.net>
- Date
- Oct 2, 2008, 14:30 UTC
- Message-ID
- <48E4DB21.7020304@drmicha.warpmail.net>
- In-Reply-To
- <33f4f4d70810020726g71c6f39eq16585269fb268322@mail.gmail.com>
Klas Lindberg venit, vidit, dixit 02.10.2008 16:26:
Show 8 quoted lines
> Repo size is a problem too, actually. > > 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
I don't know about others, but I would appreciate more info: Do you want to remove commits (as stated earlier) or files (as stated here)? What are the boundary conditions? Rewriting history seems to be OK now.
> basically seemed to do exactly what I wanted (recreate the repo, minus > some explicit stuff, with history intact otherwise), except the result > looked crazy.
That may be due to the filter-branch incarnation, i.e. which refs did you rewrite (--all or HEAD)?
Michael