Here is my case:
But suddenly
In may case after using Notepad to open the file named after my branch name found at .git\logs\refs\heads\
was empty. So I deleted it.
and run to get latest commit
git reflog
4404dd7 HEAD@{0}: commit: update README
and then I run
git reset --hard 4404dd7
HEAD is now at 4404dd7 update README
and branch was back. Note
This may diverge your branch. So you may need to fix them later.
4404dd7 was my latest commit in that branch and I don't know if this is proper solution or not but it was what worked or me.