git creates a remote branch application

create remote branch

Select Create branch as shown below

insert image description here

Then the developer pulling the update locally will become a tracking origin/devbranch

insert image description here

insert image description here

Then create a new branch locally (preferably with the same name as the remote branch ) and track the origin/dev branch

insert image description here

Modify the file and submit it

insert image description here

Switch back to the master branch to see that the code remains unchanged

Guess you like

Origin blog.csdn.net/qq_42120843/article/details/130969691