1.切换到基础分支,如mastergit checkout master2.创建并切换到新分支git checkout -b dev3.更新分支代码并提交 git add * git commit -m "init dev" git push origin dev