step1,在本地新建分支
git branch newbranch
step2:把本地分支push到远程
git push origin newbranch
step3:切换到该分支
git checkout newbranch
step4:查看本地修改
git status
step5:添加本地修改
git add .
step6:commit修改
git commit -m 'XXXX'
step7:push代码
git push
完毕
本文介绍了一个典型的Git分支管理工作流程,包括创建新分支、推送分支到远程仓库、切换分支、查看及提交本地更改,并最终推送代码的步骤。
step1,在本地新建分支
git branch newbranch
step2:把本地分支push到远程
git push origin newbranch
step3:切换到该分支
git checkout newbranch
step4:查看本地修改
git status
step5:添加本地修改
git add .
step6:commit修改
git commit -m 'XXXX'
step7:push代码
git push
完毕
1911
1200
2971

被折叠的 条评论
为什么被折叠?