Create a new branch on github


15242726.3137

part I: Add new branch step decomposition
The first step: git branch to view the current branch situation
git branch //View the current branch situation

Step 2: git branch branch name, create a new branch of your own
git branch branch name // create a new branch of its own

Step 3: git checkout branch name, switch to the new branch
git checkout branch name // switch to the new branch

Step 4: git branch, check again

Step 5: git push -u origin branch name, sync to github online
git push -u origin branch name // Synchronize the new branch online

Step 6: Perform add tracking and commit submission

Step 7: Check the online github repository, the new v2 branch is created! ! !

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324682884&siteId=291194637