The head points to a commit not on the branch.
commit -m "....."
commit branch <temp_branch>
branch checkout <branch>
checkout merge <temp_branch>
merge branch -d <temp_branch>