# RFH: Unable to get one big pack

4 messages from 2009-06-18 to 2009-06-18. Participants: Marco Costalba, Alex Riesen, Nicolas Pitre.
Thread: https://gitlist.dev/t/19854

## Marco Costalba, 2009-06-18 14:55

Subject: RFH: Unable to get one big pack
Message-ID: <e5bfff550906180755i774576c1o1c540224cea675ca@mail.gmail.com>
URL: https://gitlist.dev/e/e5bfff550906180755i774576c1o1c540224cea675ca%40mail.gmail.com

```
Sorry for the silly question, but I have tried anything to get one big
pack instead of many objects.

I tried git repack but with no success:

$ git repack -adf
Counting objects: 3317, done.
Compressing objects: 100% (3317/3317), done.
Writing objects: 100% (3317/3317), done.
Total 3317 (delta 2607), reused 0 (delta 0)
$ ls -R .git/objects | wc -l
  519
$

Thanks in advance for your kind help
Marco

BTW I have trid also git prune in any way but without succes either.

```

## Alex Riesen, 2009-06-18 15:40

Subject: Re: RFH: Unable to get one big pack
Message-ID: <81b0412b0906180840y62d5c382ha47aebcda3e610f1@mail.gmail.com>
URL: https://gitlist.dev/e/81b0412b0906180840y62d5c382ha47aebcda3e610f1%40mail.gmail.com
In-Reply-To: <e5bfff550906180755i774576c1o1c540224cea675ca@mail.gmail.com>

```
2009/6/18 Marco Costalba <mcostalba@gmail.com>:
> Sorry for the silly question, but I have tried anything to get one big
> pack instead of many objects.
>
> I tried git repack but with no success:
>
> $ git repack -adf
> Counting objects: 3317, done.
> Compressing objects: 100% (3317/3317), done.
> Writing objects: 100% (3317/3317), done.
> Total 3317 (delta 2607), reused 0 (delta 0)
> $ ls -R .git/objects | wc -l
>  519
> $

git gc && git prune

```

## Nicolas Pitre, 2009-06-18 16:03

Subject: Re: RFH: Unable to get one big pack
Message-ID: <alpine.LFD.2.00.0906181152120.16467@xanadu.home>
URL: https://gitlist.dev/e/alpine.LFD.2.00.0906181152120.16467%40xanadu.home
In-Reply-To: <e5bfff550906180755i774576c1o1c540224cea675ca@mail.gmail.com>

```
On Thu, 18 Jun 2009, Marco Costalba wrote:

> Sorry for the silly question, but I have tried anything to get one big
> pack instead of many objects.
> 
> I tried git repack but with no success:
> 
> $ git repack -adf
> Counting objects: 3317, done.
> Compressing objects: 100% (3317/3317), done.
> Writing objects: 100% (3317/3317), done.
> Total 3317 (delta 2607), reused 0 (delta 0)
> $ ls -R .git/objects | wc -l
>   519
> $

The -d flag to 'git repack' only deletes old packs.

If you want to remove redundant loose objects then you need to run 
'git prune'.


Nicolas

```

## Marco Costalba, 2009-06-18 17:13

Subject: Re: RFH: Unable to get one big pack
Message-ID: <e5bfff550906181013o7c5140bes187e2062126075d9@mail.gmail.com>
URL: https://gitlist.dev/e/e5bfff550906181013o7c5140bes187e2062126075d9%40mail.gmail.com
In-Reply-To: <81b0412b0906180840y62d5c382ha47aebcda3e610f1@mail.gmail.com>

```
On Thu, Jun 18, 2009 at 16:40, Alex Riesen<raa.lkml@gmail.com> wrote:
> 2009/6/18 Marco Costalba <mcostalba@gmail.com>:
>> Sorry for the silly question, but I have tried anything to get one big
>> pack instead of many objects.
>>
>> I tried git repack but with no success:
>>
>> $ git repack -adf
>> Counting objects: 3317, done.
>> Compressing objects: 100% (3317/3317), done.
>> Writing objects: 100% (3317/3317), done.
>> Total 3317 (delta 2607), reused 0 (delta 0)
>> $ ls -R .git/objects | wc -l
>>  519
>> $
>
> git gc && git prune
>

Thanks to you and Nicolas for the hint. It worked.

If I can make a suggestion: description of git-repack is a bit misleading

"git-repack(1)

This script is used to combine all objects that do not currently
reside in a "pack", into a pack. It can also be used to re-organize
existing packs into a single, more efficient pack."

```
