That is:

git rebase -i HEAD~2

is probably what you want...

Use 3 if you wanted the 3rd commit back.


On Tue, Oct 22, 2013 at 2:55 PM, Aron Ahmadia <[email protected]> wrote:

> git rebase -i HEAD~2/3
>
>
> On Tue, Oct 22, 2013 at 2:53 PM, Barry Smith <[email protected]> wrote:
>
>>
>>   I would like to put together the last two commits in a branch, how do I
>> do this?
>>
>>  git rebase -i
>>
>> doesn't help because it only handles the last commit. How do I tell git
>> to go back one commit in the rebase?
>>
>>    Thanks
>>
>>    Barry
>>
>>
>

Reply via email to