git clone只能clone远程库的master分支,无法clone所有分支,解决办法如下: 找一个干净目录,假设是git_work cd git_work git clone http://myrepo.xxx.com/project/.git ,这样在git_work目录下得到一个project子目录 cd project git branch -a,列出所有分支名称如下: remotes/origin/dev remotes/origin/release git checkout -b…