Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

git rebase -i --retain-empty-commits

Tags:

git

git-rebase

By default, when you use git rebase -i it comments out empty commits and I have to uncomment them (they're helpful to me). Is there an option to the rebase command that will prevent this unwanted assumption that I don't want to preserve them?

like image 729
Sridhar Sarnobat Avatar asked May 12 '16 18:05

Sridhar Sarnobat


1 Answers

Okay, that was easier than expected:

git rebase -i --keep-empty

Hopefully this post will speed up others Googling to find the answer.

like image 134
Sridhar Sarnobat Avatar answered Oct 04 '22 11:10

Sridhar Sarnobat