I'm having some trouble with git rebase -i
not working as I expect from reading various pieces of online documentation and tutorials.
I'm trying to squash my last four commits into one. Imagine a branch dev
with remote origin/dev
and commits
A -> B -> C -> D -> E
│ └ dev
└ origin/dev
And I want to end up here:
┌ dev
A -> F
│
└ origin/dev
Where F contains all the changes from B, C, D and E. So, given that I have dev
checked out, I should be able to run git rebase -i origin/dev
or git rebase -i HEAD~4
then squash C, D and E, right?
Here's my problem: running either of those rebase commands doesn't popup a git window to do anything. The console just returns:
Successfully rebased and updated refs/heads/dev.
I'm confused, why is the interactive rebase not working? Is there some problem with my Git configuration?
Update
git config --global rebase.autoSquash
returns nothing