git 新建分支并提交本地代码到远程分支

来源:互联网 发布:ubuntu vim 新建文件 编辑:程序博客网 时间:2024/05/19 21:44

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

完毕

0 0