I'm trying to reorder 3 commits.
My current condition is:
A -> B -> C
I would like to rebase and get to this:
A -> C -> B
(just swap commits B
and C
)
I run the command git rebase -i A
.
My editor opens up, I change the picks done and save. Nothing happens.
I notice the following:
When I run the rebase command, my editor opens but also I already see the following in the terminal:
Successfully rebased and updated refs/heads/master.
rm: cannot remove `/path/to/git/repo/.git/rebase-merge': Directory not empty
Even though I still did not do anything after running the rebase command (I did not edit anything yet in my editor).
What am I missing?