I have a fork of a Git repo and my clone appears to have an issue with an old, no longer existant, branch. I keep seeing this message:
error: refs/heads/t_1140
error: refs/heads/t_1140 does not point to a valid object!
So let's say you've tried pruning with this:
git remote prune origin
and you still CAN'T GET IT TO WORK, as a last resort, try deleting t_1140
t_1140
Basically,
1. cd refs/heads
2. rm -r t_1140