I see that there are other issues covering this topic but it also seems rather sensitive. I don't want to delete any data so I want to make sure that I fix this the correct way. I'm getting this error when ever I try to autocomplete anything with git.
warning: ignoring ref with broken name refs/stash 2
Does anybody know what is going wrong here and how I can fix it? Thank you!
What's not clear to me is what created these incorrect / broken reference names.
To fix it, you can delete them:
git update-ref -d 'refs/stash 2'
However, note that whatever made them might be expecting them to be useful (they're not) and to protect various internal Git objects (they may not, because some parts of Git reject them as invalid).
They are in fact invalid; see the git check-ref-format
documentation for details. The git update-ref
command refuses to create the bad references, so (again) it's not clear what made them. (Probably evil software that writes directly into .git
.)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With