Having a chat along with my co-worker he spoke about git-repack.

Try to use it: git repack --window=50 --depth 100 --window-memory=1g

for more info
man git-repack

On Wed, Jun 17, 2009 at 9:17 PM, Alberto Leal <albert...@gmail.com> wrote:

> One way to shrink the repo size is rewriting your branches. Once you get
> the biggest files, try to use 'git-filter-branch' to remove them from your
> repository.
>  Wed, Jun 17, 2009 at 9:15 PM, agaelebe <hugo.bor...@gmail.com> wrote:
>> I'm with the following problem.
>> I have a git repository in a VPS with 360mb of ram.
>> Unfortunately, I started tracking a SQL.dump file (bad idea, by the
>> way). That file grew bigger and bigger and it's almost 50mb now. My
>> repository is about 400mb!
>> And when I try to run git gc inside the project I get:
>> Counting objects: 3290, done.
>> warning: suboptimal pack - out of memory
>> fatal: Out of memory, malloc failed)
>> error: failed to run repac
>> If I try to clone the project in my local machine I get simillar out-
>> of-memory errors.
>> I tried to revert some commits but It didn't work.
>> So, how can I find these big files (the different versions) and get
>> rid of them so I can shrink the repository size?
>> Does someone have a clue of what can I do?
>> On my local machine I'm running version and on the VPS version
>> ( I updated it to latest version to ceck if it would solve the
>> problem)
>> Thanks for your attention
>> >>

You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To post to this group, send email to git-users@googlegroups.com
To unsubscribe from this group, send email to 
For more options, visit this group at 

Reply via email to