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