一、先git fetch查看所有分支

二、切換測試分支
git checkout -b laifufeng/feature_we_v2_1 origin/laifufeng/feature_we_v2_1
若出現(xiàn)如下報(bào)錯(cuò) 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?
則執(zhí)行命令 git fetch
三、安裝依賴包 composer install
四、更新該分支的代碼 git pull
若Git pull 遇到報(bào)錯(cuò)如下圖

則gitclear一下 再git pull