How to create a new branch


1. Go to a local git repository directory, open the git bash environment


2. Use the git branch command to view the current directory is only one master branch


3. Use the command: git checkout -b admin_v1.0 (branch name) to create a branch called admin_v1.0, while switching to the branch


4. Use the command git push origin admin_v1.0 (branch name) will be newly added local branch added to the remote server


After 5.push you can see the new branch in the remote server.

Guess you like

Origin www.cnblogs.com/pongx/p/11756453.html