1. 查看远程分支,查看当前所有
git branch -a
2. 查看本地分支
git branch
* master
3. 切换分支
//创建分支
git checkout -b test origin/test
//切换分支
git checkout 分支名
1. 查看远程分支,查看当前所有
git branch -a
2. 查看本地分支
git branch
* master
3. 切换分支
//创建分支
git checkout -b test origin/test
//切换分支
git checkout 分支名