如果想克隆某个分支
git clone '' -b branchname
查看本地所有分支
git branch
查看所在目录的分支
git branch -a
查看远程所有分支
git branch -r
删除某分支
git branch -d 'branchname'
切换分支
git checkout 'branchname'
创建并切换分支
git checkout -b 'branchname'
操作1:从远程拉取并创建分支
git clone ''
get fetch origin 'branchname'
git checkout -b 'branchname' origin
git pull origin 'branchname'
标签:origin,git,指令,branch,branchname,checkout,分支 From: https://www.cnblogs.com/naturl/p/16895559.html