git rebase results in detached head