I am seeing a weird bug/feature in Mac Terminal. When I type Git Checkout followed by a tab then it shows me a huge list of branches(Couple of hundred branches) and I was a little confused looking a such a huge list. But when I paid more attention to it, it turned out that it is a list which contains all the branches ever created on this repo including remote branches ever pulled. This is not necessarily an error or doesnt stop me from working efficiently but it is a little annoyance.
I am just wondering if there is anyway to clean this list up?