git create branch and download code from branch

One: Find the project, right-click Git Bash Here to open the git command window, and use the git branch command to view the branch 

  Only one master branch

Two: use git branch to create a branch

 After creation, you can use the git branch command to check that test already exists 

Three: use git push origin to push to the github warehouse

You can see it on github

To download code from the test branch, you only need to execute the following command

git clone -b test https://github.com/xinha/myPrivateGit.git

Guess you like

Origin blog.csdn.net/jungeCSND/article/details/107974326