How do I fix my git repository to remove a 'bad ref for refs/heads/TestBranch' warning?
- by Joseph Kingry
I keep getting this warning when doing operations in git (commit, fetch etc). I had a 'bad' branch at some point in the past. It doesn't prevent any operations so far with my repository, but I'd like to clean it up.
git fsck doesn't seem to help. Also, I can not just re-clone from another repository as I'd like to keep some commits that are unique to this repository.