Howto remove the merge commit (diamond) using lazygit #3454
-
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
This is a very good question, and I'm afraid the answer is no, there is no way in lazygit to do this currently. The reason is that lazygit insists on adding If we do #2849 in one way or another, this could help, it would allow users to toggle the Or is this a situation that you encounter frequently? |
Beta Was this translation helpful? Give feedback.
-
Fair enough. I just thought that i missed something.
No. I only need this when i made a merge commit by mistake, and it's a simple enough fix in the console. |
Beta Was this translation helpful? Give feedback.
-
I've just discovered I wanted to remove a lot of merge commits, so I used a hybrid approach:
|
Beta Was this translation helpful? Give feedback.
This is a very good question, and I'm afraid the answer is no, there is no way in lazygit to do this currently. The reason is that lazygit insists on adding
--rebase-merges
to every rebase command. (Which is a good thing, I don't think we should change that.)If we do #2849 in one way or another, this could help, it would allow users to toggle the
--rebase-merges
case by case. But then, if users are knowledgeable enough to know that's what they need to do, they might just as well drop down to the command line and do it there.Or is this a situation that you encounter frequently?