My history was
P --> A --> revert_A --> B
I decided to drop revert_A and squash A and B to have
P --> A_squash_B
I run git rebase -i
, drop revert_A
, squash B
. The history becomes what I wanted, but with this message
$ git rebase -i
[detached HEAD 4cc03a1] check also if error log has been written
Date: Wed Jan 22 11:44:25 2020 +0100
2 files changed, 29 insertions(+), 3 deletions(-)
Successfully rebased and updated refs/heads/new_branch.
The 4cc03a1
is really the hash of my A_squash_B
, and it is not detached as it is referenced by my_branch
.
What does git mean by [detached HEAD 4cc03a1]
?