git fetch origin doesn't fetch all branches
问题 I read in the answers to this question that git fetch origin should fetch all branches of origin. In my case, it doesn't seem to give me any branches, though. Here's what I did: Initially, a remote called origin had 7 branches. I cloned it. git branch then returned only master . I did git fetch origin , and git branch still only shows master . How can I get the other 6 branches without fetching them individually? 回答1: You have all 7 branches, but git branch only shows local branches. Even