从master拉取新分支并push到远端 开发过程中经常用到从master分支copy一个开发分支: 1.切换到被copy的分支(master),并且从远端拉取最新版本 $git checkout master $git pull 2.从当前分支拉copy开发分支 $git checkout -b dev Switched to a new branch 'dev' 3.把新建的分支push到远端 $git push origin dev 4.关联 $git branch --set-upstream-to=origin/dev 5.再次拉取验证 $git pull
参考:http://www.divcss5.com/html/h63419.shtml
标签:git,dev,拉取,master,push,分支 From: https://www.cnblogs.com/aspirant/p/16646491.html