# Why sometime git-rebase doesn't preserve merge

1 messages from 2011-05-10 to 2011-05-10. Participants: Francis Moreau.
Thread: https://gitlist.dev/t/27315

## Francis Moreau, 2011-05-10 12:51

Subject: Why sometime git-rebase doesn't preserve merge
Message-ID: <BANLkTinV1hJ4CaV_X1ospOFzH0k17aYWYA@mail.gmail.com>
URL: https://gitlist.dev/e/BANLkTinV1hJ4CaV_X1ospOFzH0k17aYWYA%40mail.gmail.com

```
Hello,

I'm using "git rebase -p" to rebase (not a suprise here) my devel
branch onto the master one.

In my devel branch, I've merged some remote branches.

Some merges are recreated, since I passed the -p switch,  but some are
not and all commits from the remote branch are inlined in my devel
branch.

Could anybody tell me why this happen and how I can avoid this behaviour ?

Shouldn't git-rebase fail if -p is passed ?

Thanks
-- 
Francis

```
