一、先git fetch查看所有分支
二、切换测试分支
git checkout -b laifufeng/feature_we_v2_1 origin/laifufeng/feature_we_v2_1
若出现如下报错 Cannot update paths and switch to branch 'get_to_post' at the same time.
Did you intend to checkout 'origin/get_to_post' which can not be resolved as commit?
则执行命令 git fetch
三、安装依赖包 composer install
四、更新该分支的代码 git pull
若Git pull 遇到报错如下图
则gitclear一下 再git pull