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
完毕
标签:git,newbranch,本地,push,commit,远程,分支 来源: https://blog.csdn.net/qq_41417772/article/details/111587230