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: Elijah Newren
Date: Sunday, October 7, 2007 - 5:22 pm

On 10/7/07, Dmitry Potapov <dpotapov@gmail.com> wrote:

Yes, this seems to work.  So the history-rewriting steps are

git-filter-branch --tree-filter 'rm -f testme.txt' HEAD
git reset --hard
rm -rf .git/refs/original/
vi .git/packed-refs
# Use vi to remove the line referring to refs/original...
git reflog expire --all --expire-unreachable=0
git gc --prune

Seems like a wrapper is needed.  :-)


What other scenarios could lead to unreachable references?  I don't
know how to determine whether this is safe or not (except that these
were test repositories anyway, so I don't care what happens to them).

Thanks!
Elijah
-
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 ..., Elijah Newren, (Sun Oct 7, 5:22 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 ..., Johannes Schindelin, (Tue Oct 9, 3:37 am)