Since a few days ago, every time I press tab key to complete branch names in bash I see the message:
warning: ignoring broken ref refs/remotes/origin/HEAD warning: ignoring broken ref refs/remotes/origin/HEAD
For example, this is what I see when I have a branch called feature/foo and I press tab:
git checkout f
$ git checkout fwarning: ignoring broken ref refs/remotes/origin/HEAD
warning: ignoring broken ref refs/remotes/origin/HEAD
eature/
git fetch
and thengit branch -r
. It maybe that you need to do some clean up. If this is the cases I can post up some clean-up functions... (likegit fetch -p
which removes local refs that have been removed on the remote).