Git 建立新分支並提交到遠程倉

Git 建立新分支並提交到遠程倉
step1,在本地新建分支git

git branch newbranch
step2:把本地分支push到遠程it

git push origin newbranch
step3:切換到該分支ast

git checkout newbranch
step4:查看本地修改co

git status
step5:添加本地修改遠程

git add .
step6:commit修改push

git commit -m 'XXXX'
step7:push代碼new

git push
step8:查看分支commit

git branch
step8 :切換到主分支分支

git checkout master
step9:更新

git pull
step10:合併到主分支

git merge newbranch
step11:push 到主分支

git push

相關文章
相關標籤/搜索