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
step8:查看分支
git branch
step8 :切换到主分支
git checkout master
step9:更新
git pull
step10:合并到主分支
git merge newbranch
step11:push 到主分支
git push
相关文章:
- git 创建分支并提交到远程 2022-02-08
- Git创建远程分支并提交代码到远程分支 2021-05-27
- git 实现提交远程分支步骤 2021-11-19
- git提交本地分支到远程分支(转) git提交本地分支到远程分支 2022-02-08
- Git 本地创建分支并提交远程分支 2022-02-07
- Git创建分支/GIT提交分支 2021-11-19
- git 本地创建分支 并推送到远程新分支 步骤 2021-07-15