foreword
I believe that every small partner has to go through this step after creating a new branch in the project. The process is relatively simple.
Specific steps
1. Create a branch
git branch lhs
2. Switch to the new branch
git checkout lhs
3. Merge the main branch
git merge main
Submit the merged code of the new branch
4. Submit all codes to the local temporary storage area
git add .
5. Submit all codes to the local warehouse area
git commit -m 'feat:提交说明'
6. Officially submit the code in the local warehouse area to the remote branch, and at the same time establish a connection between the local branch and the remote branch
git push --set-upstream origin lhs
7. Now you can pull it down
git pull
// Already up to date.