How to create a new git branch

1) to a base branch, such as the trunk

git checkout master

2) Create and switch to a new branch

git checkout -b panda

git branch can already see the panda branch

3) Update branch code and submit

git add *

git commit -m "init panda"

git push origin panda

4) it can be seen by the panda branch in git code management interface, and success ~~

Guess you like

Origin www.cnblogs.com/junjun-001/p/11842159.html