Yesterday one of my team\'s checkins corrupted our github repo. On github, they were showing this error:
$ git fsck error: sha1 mismatch 87859f196ec9266bada
I ran into the same issue and ran:
git prune git gc
which mentioned
error: bad ref for refs/remotes/origin/ticketName
so I removed the reference and that fixed the issue:
rm .git/refs/remotes/origin/ticketName