On Mon, Oct 19, 2009 at 3:53 AM, Nicolas Pitre <[email protected]> wrote: > On Sun, 18 Oct 2009, David Brownell wrote: > >> On Sunday 18 October 2009, Øyvind Harboe wrote: >> > I'm not quite up to speed on this graft stuff(first I heard of >> > it), but I trust you on how to execute this in the best manner. >> >> I didn't know about "graft" (in the non-political sense!) >> before I started exploring how to fix this either. ;) > > To cleanup/fix a git repository, what you usually want to use is > "git filter-branch". The man page is quite comprehensive with examples.
I've used git filter-branch once before and it seems like a very unclever(as in good!) way to fix the problem. The only trick is that you'll only see the size reduction when you clone as removing the now unreferenced objects from the database is *much* harder than using git filter-branch in the first place. I tried the below, but it didn't work(I don't recall how I did this last time...): git filter-branch --tree-filter 'rm -rf zy1000/' HEAD ... WARNING: Ref 'refs/heads/master' is unchanged # Read "Checklist for Shrinking..." in git filter-branch docs git clone openocd tar -cjvf x openocd ls -l x But how do I push these changes to sourceforge? I basically need to wipe the current .git repository and push this one... -- Øyvind Harboe http://www.zylin.com/zy1000.html ARM7 ARM9 ARM11 XScale Cortex JTAG debugger and flash programmer _______________________________________________ Openocd-development mailing list [email protected] https://lists.berlios.de/mailman/listinfo/openocd-development
