切换到github上的非master分子
- git clone http://github.com/project.git
- cd project
- git branch -a,列出所有分支
* master
remotes/origin/HEAD -> origin/master
remotes/origin/develop
remotes/origin/gh-pages
remotes/origin/log-client-remote
remotes/origin/master
- 假定我们要切换到develop分支
git checkout -b develop origin/develop
此命令的作用是,新建本地develop分支并切换到远程的origin/develop分支上