Lately every git pull I do gives me an error message like:
error: refs/heads/TestBranch123 does not point to a valid object!
These are old branches and I don't care, so I'd just like to delete them so I don't see the error anymore. When I try to delete the branch I can't for a similar error.
git branch -D TestBranch123
error: Couldn't look up commit object for 'refs/heads/TestBranch123'