git learning (3) ---- git branch and submit the new native code to a remote branch

 

A step

1, create a branch on gitlab, then this

 

Second, the online steps

Reprinted: https://blog.csdn.net/qq_33829154/article/details/81364989

step1, the local branch of the New

git branch newbranch

step2: the local branch push to remote

git push origin newbranch

step3: switching to the branch

git checkout newbranch

step4: Check local modifications

git status

step5: Adding local modifications

git add .

step6: commit modifications

git commit -m 'XXXX'

step7: push the code

git push

Complete

Guess you like

Origin www.cnblogs.com/Lee-yl/p/11009467.html