$ git checkout  切换到某分支;例如  $ git checkout master  切换到主分支

$git checkout -b 新建并切换到新建的分支上;例如 $git checkout -b newbranch 

相关文章: