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


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
step8:查看分支

git branch
step8 :切換到主分支

git checkout master
step9:更新

git pull
step10:合並到主分支

git merge newbranch
step11:push 到主分支

git push


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM