I have a branch that looks like this
C (Detached HEAD)
git checkout branch
git checkout HEAD~
git commit -m "C"
Force delete the
branch and create branch on the
C commit. Do force push if branch is in any remote repository.
If you can repeate the commit (i.e. you have a diff saved somewhere), you can reset branch's
HEAD~ and the do the commit.