threads / discuss / 30227

How to always use --merge option in git rebase?

Subject: How to always use --merge option in git rebase?

## tl;dr

3 messages between Apr 12, 2012 and Apr 14, 2012.

replies: 2people: 2as markdown or json

Alexander Kostikov· Apr 12, 2012, 20:31 UTC · lore
Hi,
We have a huge repository ~10 GB. After some integrations the following happens:
> git rebase master

First, rewinding head to replay your work on top of it... fatal: Out of memory, malloc failed (tried to allocate 55012353 bytes)

There is a workaround to use 'git rebase --merge' instead. But I couldn't find a way to make the merge-based rebase the default one. Is it possible? git version 1.7.10.msysgit.1

-- 
Alexander Kostikov
Neal Kreitzinger· Apr 12, 2012, 23:33 UTC · re: Alexander Kostikov · lore

Re: How to always use --merge option in git rebase?

On 4/12/2012 3:31 PM, Alexander Kostikov wrote:
Show 13 quoted lines
> Hi,
>
> We have a huge repository ~10 GB. After some integrations the following happens:
>
>> git rebase master
> First, rewinding head to replay your work on top of it...
> fatal: Out of memory, malloc failed (tried to allocate 55012353 bytes)
>
> There is a workaround to use 'git rebase --merge' instead. But I
> couldn't find a way to make the merge-based rebase the default one. Is
> it possible?
> git version 1.7.10.msysgit.1
>

You could make a git alias like "git rebaser" that does 'git rebase --merge'.

v/r, neal

Alexander Kostikov· Apr 14, 2012, 01:05 UTC · re: Neal Kreitzinger · lore

Re: How to always use --merge option in git rebase?

Thanks. I was hoping there is some config setting for that though.

On Thu, Apr 12, 2012 at 4:33 PM, Neal Kreitzinger <nkreitzinger@gmail.com> wrote:

Show 22 quoted lines
> On 4/12/2012 3:31 PM, Alexander Kostikov wrote:
>>
>> Hi,
>>
>> We have a huge repository ~10 GB. After some integrations the following
>> happens:
>>
>>> git rebase master
>>
>> First, rewinding head to replay your work on top of it...
>> fatal: Out of memory, malloc failed (tried to allocate 55012353 bytes)
>>
>> There is a workaround to use 'git rebase --merge' instead. But I
>> couldn't find a way to make the merge-based rebase the default one. Is
>> it possible?
>> git version 1.7.10.msysgit.1
>>
> You could make a git alias like "git rebaser" that does 'git rebase
> --merge'.
>
> v/r,
> neal
-- 
Alexander Kostikov

← back to recent threads