查看当前分支:
git branch
* master
查看所有分支:
git branch -a
* master
remotes/origin/HEAD -> origin/master
remotes/origin/master
remotes/origin/2.5.0
remotes/origin/2.5.0-shopcart
remotes/origin/alioss
切换到某个分支:
git checkout 2.5.0-shopcart
Switched to a new branch '2.5.0-shopcart'
Branch '2.5.0-shopcart' set up to track remote branch '2.5.0-shopcart' from 'origin'.