- New branch git checkout–b xd This creates a branch called XD and automatically jumps to that branch (equivalent to Git branch xd enter git checkout dev)
- Go to the Branch directory (go to the branch directory via the command line or go to the branch directory and then right-click Git bash)
The flag to determine whether to enter the branch is to see the parentheses behind the directory, with the branch name in parentheses, as shown in
- Working with the project
- Once the project operation is complete, go to the branch directory and use git status to view the status
- After viewing the status, use git Add. Commit all to the local staging library
- Then git commit–m "write a note here" to push staging area data to the local repository
Note It is best not to use Chinese
- Push branch: Git push origin XD pushes its modified branch to GitHub
git push to GitHub step