Re: Trying to use git-filter-branch to compress history by removing large, obsolete binary files

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Dmitry Potapov
Date: Sunday, October 7, 2007 - 6:06 pm

On Sun, Oct 07, 2007 at 06:22:28PM -0600, Elijah Newren wrote:

Actually, I would rather not, because you rarely need to remove anything
immediately, and 30 days delay is reasonable time to give you a chance
to recover that you removed accidentally. You can reduce it by setting
appropriate value for gc.reflogExpireUnreachable in your configuration.
The only thing you need to do is to remove .git/refs/original/heads/something
after you are sure that git-filter-branch did exactly what you wanted.


Any re-writing of history leads to that.


Git logs all your action, so even re-writing history would not be
so disastrous if you suddenly realized that you did something wrong.
The history is stored for 30 days by default. Usually, you do not
need to mess with Git internals like you did above. Your useless
files still will disappear after being unreachable for 30 days.

OTOH, if you want to have a clean repository immediately, I believe
'git clone' is a better option. After you made a local clone using
it, 'git gc' should remove old garbage.

Dmitry
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: Trying to use git-filter-branch to compress history by ..., Johannes Schindelin, (Sun Oct 7, 4:19 pm)
Re: Trying to use git-filter-branch to compress history by ..., Johannes Schindelin, (Sun Oct 7, 4:28 pm)
Re: Trying to use git-filter-branch to compress history by ..., Johannes Schindelin, (Sun Oct 7, 5:34 pm)
Re: Trying to use git-filter-branch to compress history by ..., Johannes Schindelin, (Sun Oct 7, 6:06 pm)
Re: Trying to use git-filter-branch to compress history by ..., Dmitry Potapov, (Sun Oct 7, 6:06 pm)
Re: Trying to use git-filter-branch to compress history by ..., Johannes Schindelin, (Tue Oct 9, 3:37 am)