How do I fix my git repository to remove a 'bad ref for refs/heads/TestBranch' warning?
Posted
by Joseph Kingry
on Server Fault
See other posts from Server Fault
or by Joseph Kingry
Published on 2010-06-03T14:46:21Z
Indexed on
2010/06/03
14:56 UTC
Read the original article
Hit count: 237
git
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.
© Server Fault or respective owner