Interactive rebasing
Last updated
Last updated
So what if I want to manipulate multiple commits at once?
This is where interactive rebasing comes in. Given a bunch of commits, you can change the order, drop certain commits or amend them.
Go to
There's a type in 1dab2c
. Let's amend it and propagate it up.
In lazygit:
Use v to select all the commits you want in your interactive rebase
Hit e to start the interactive rebase
While hovering over a commit
p to pick
d to drop
e to edit
s to squash
<C-j> or <C-k> to rearrange your commits