整个过程是这样的:
1、创建目录
2、git clone http://gitlab.i.beebank.com/php-beebank/fengyi.git
3、查看现在在哪个分支:
利用git branch -a
* master
remotes/origin/HEAD -> origin/master
remotes/origin/develop
remotes/origin/master
有星号的就是你现在所在的分支
4、切换到你需要工作的分支
使用git checkout org/develop -b develop
Branch 'develop' set up to track remote branch 'develop' from 'origin'.
Switched to a new branch 'develop'
5、再次查看现在在哪个分支
git branch
Branch 'develop' set up to track remote branch 'develop' from 'origin'.
Switched to a new branch 'develop'