git只clone下来master分支,想要获取其他分支代码,该怎么办 前端开发张小七 2020-11-11 566 阅读1分钟 1.问题:git clone 远程代码 只clone 下来一个分支master,但是最新的代码在其他分支上,此时想要获取其他分支上的代码 该怎么解决? 1.git clone http:............ clone 2.git status 查看当前状态 3.git branch 查看本地所有分支 4.git branch -a 查看本地和远程所有分支 5.git checkout -b cqsl origin/cqsl 把远程库的 cqsl 分支拉倒本地的 cqsl 分支时使用指令