How to create a new branch 8.git

1. The handover branch to the base, such as trunk

git checkout master

2. Create and switch to a new branch demo

git checkout -b demo

3.git branch view has branches in demo

4. Update branch code and submitted

git add *
git commit -m "demo"
git push origin demo

5.git code management interface to see the new branch submitted

Guess you like

Origin www.cnblogs.com/janet11/p/12460555.html