When I type git branch
, I get
* master
localbranch
But when I try to remove the branch, git branch -d localbranch
, I get a not found error:
error: branch 'localbranch' not found.
I have also tried to force the delete with git branch -D localbranch
, but it is giving me the same error.
The branch was corrupted and I did the following procedure, Git repository corrupt (incorrect header check; loose object is corrupt), to remove the corrupted files. But now I cannot delete the branch.