1 |
Henry Gebhardt wrote: |
2 |
> On Mon, Feb 23, 2009 at 10:02 PM, Justin <justin@×××××××××.net> wrote: |
3 |
>> Justin schrieb: |
4 |
>>> Henry Gebhardt schrieb: |
5 |
>>>> On Mon, Feb 23, 2009 at 9:14 PM, Justin <justin@×××××××××.net> wrote: |
6 |
>>>>> Henry Gebhardt schrieb: |
7 |
>>>>>> On Mon, Feb 23, 2009 at 6:53 PM, Justin <justin@×××××××××.net> wrote: |
8 |
>>>>>>> Justin schrieb: |
9 |
>>>>>> (...) |
10 |
>>>>>>> But I hit some bad thing, I am working alot with branches and noted that |
11 |
>>>>>>> the .git dir growths and growths, although I removed the branches. Can |
12 |
>>>>>>> I clean this up? |
13 |
>>>>>> Yes! Collect all the garbage with |
14 |
>>>>>> |
15 |
>>>>>> $ git gc |
16 |
>>>>>> |
17 |
>>>>>> ~Henry |
18 |
>>>>>> |
19 |
>>>>> but that doesn't really shrink the size. |
20 |
>>>> That's weird. How big is it getting? (Mine is 4.1 MB) |
21 |
>>>> |
22 |
>>> 150mb adn it shrinked with git gc --agressive down to 120mb. |
23 |
> |
24 |
> Now that is indeed a bit excessive. |
25 |
> |
26 |
>>> What I did was pulling other overlays as branch, doing an filterbranch |
27 |
>>> and only merging certain thing. perhaps this is something different than |
28 |
>>> branching the repo itself. |
29 |
>>> |
30 |
>> and of course deleted the branches afterwards |
31 |
>> |
32 |
> |
33 |
> Hm, I've never used git filter-branch before, but according to the |
34 |
> manpage the original branches are still stored in .git/refs/original, |
35 |
> so git gc wouldn't remove the objects they reference. Also, there |
36 |
> might still be a reference in .git/refs/remotes. (Possibly |
37 |
> |
38 |
> $ git branch -a |
39 |
> |
40 |
> will show all of them to you (definitely the remote ones).) |
41 |
> |
42 |
> Hope that helps. |
43 |
> |
44 |
> ~Henry |
45 |
> |
46 |
|
47 |
yeah I deleted all branches, in branch -a there is only the local master |
48 |
and the the origin/master. |