1.先提交一波 爲後續切分支準備git
(xxx1爲本身的分支 xxx2爲想要拉取的分支)fetch
git add .spa
git commit -m 'yyy'it
git push origin xxx1class
2.而後git切換到你所要拉取的分支xxx2 拉取該分支代碼word
git checkout xxx2co
git pull origin xxx2 或者git fetch origin xxx2push
3.切回本身的分支commit
git checkout xxx1分支
git merge xxx2
完事