Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to edit pending commands during an interactive git rebase?

Tags:

git

rebase

After editing some commits during a rebase I changed my mind about what I want to do to the following commits. How do I edit the remaining commands?

like image 968
philix Avatar asked Oct 20 '25 02:10

philix


1 Answers

You can use the git rebase --edit-todo command.

Description from git-rebase(1):

Edit the todo list during an interactive rebase.

And after the edit, continue the rebase using git rebase --continue.

like image 98
Dan Lowe Avatar answered Oct 22 '25 05:10

Dan Lowe



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!