I'm working on OSX. In a particular repo, whenever I tab to autocomplete after typing a git command:
$ git diff [clicks tab...]
I now see a huge number of warnings:
warning: ignoring ref with broken name refs/Icon
warning: ignoring ref with broken name refs/heads/Icon
warning: ignoring ref with broken name refs/remotes/Icon
warning: ignoring ref with broken name refs/remotes/origin/Icon
warning: ignoring ref with broken name refs/tags/Icon
It's really annoying, and it means that I can't see the filenames I want to see.
How can I remove or suppress these warnings?
I have an entry for Icon?
in my gitignore
file. There is an Icon?
file in the local directory.
For all the trigger-happy people about to click "duplicate": I've searched for other answers, I found this but I'm not sure how it relates to my situation. It may be that the underlying cause is the same, but it would benefit me and others to have an explanation of how to fix this problem.