Henry Gebhardt wrote: > On Mon, Feb 23, 2009 at 10:02 PM, Justin <[email protected]> wrote: >> Justin schrieb: >>> Henry Gebhardt schrieb: >>>> On Mon, Feb 23, 2009 at 9:14 PM, Justin <[email protected]> wrote: >>>>> Henry Gebhardt schrieb: >>>>>> On Mon, Feb 23, 2009 at 6:53 PM, Justin <[email protected]> wrote: >>>>>>> Justin schrieb: >>>>>> (...) >>>>>>> But I hit some bad thing, I am working alot with branches and noted that >>>>>>> the .git dir growths and growths, although I removed the branches. Can >>>>>>> I clean this up? >>>>>> Yes! Collect all the garbage with >>>>>> >>>>>> $ git gc >>>>>> >>>>>> ~Henry >>>>>> >>>>> but that doesn't really shrink the size. >>>> That's weird. How big is it getting? (Mine is 4.1 MB) >>>> >>> 150mb adn it shrinked with git gc --agressive down to 120mb. > > Now that is indeed a bit excessive. > >>> What I did was pulling other overlays as branch, doing an filterbranch >>> and only merging certain thing. perhaps this is something different than >>> branching the repo itself. >>> >> and of course deleted the branches afterwards >> > > Hm, I've never used git filter-branch before, but according to the > manpage the original branches are still stored in .git/refs/original, > so git gc wouldn't remove the objects they reference. Also, there > might still be a reference in .git/refs/remotes. (Possibly > > $ git branch -a > > will show all of them to you (definitely the remote ones).) > > Hope that helps. > > ~Henry >
yeah I deleted all branches, in branch -a there is only the local master and the the origin/master.
signature.asc
Description: OpenPGP digital signature
