GIT

切换到github上的非master分子

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

你可能感兴趣的:(GIT)