1.切换到基础分支,如master
git checkout master
2.创建并切换到新分支
git checkout -b dev
3.更新分支代码并提交
git add *
git commit -m "init dev"
git push origin dev
git checkout master
git checkout -b dev
git add *
git commit -m "init dev"
git push origin dev
本文标题:git 如何新建分支
本文链接:https://www.haomeiwen.com/subject/dwcjwhtx.html
网友评论