git 在切分支的时候切不到那个分支,但是远程上有

1. 先将代码切到master分支: git pull

2. git fetch --all // fetch所有分支

3. git branch -a  // 此时如果没有,就git fetch 指定分支

原文地址:https://www.cnblogs.com/qianxiaoniantianxin/p/14900460.html