Push local branch to remote repository in Git

It is obvious here that I only have one master branch in the git cloud.
insert image description here
Then I created a develop branch locally.
insert image description here
Then now I want to put it in the cloud.
First we have to execute

git checkout -b develop

Switch the local branch to the develop branch.
Since what I have chosen here is what I have chosen, it is not needed.
Then we execute

git push origin develop

insert image description here
insert image description here
In this way, refresh the page develop branch in the cloud and go up.

Guess you like

Origin blog.csdn.net/weixin_45966674/article/details/132743324