1,先检出项目到一个文件夹git clone 2,你检出的项目默认是master,所以现在要查看远程全部分支git branch -a * master remotes/origin/HEAD -> origin/master remotes/origin/v1.2 remotes/origin/master remotes/origin/v1.1 remotes/origin/v1.0 3,切换分支比如同时有三个人开发,1.2最早是基于1.0,但是由于项目未发布,1.0,1.1,1.2全部都在…