Use git 3 branch (study note 3) branch git branch new // create a new branch to merge directly (merge) git checkout-B alternate master // directly create the alternate branch and go to the branch. Create a New gti add about.html on the alternate branch and submit it in git commit-m "add about.; Checkout to master branch git merge alternate // to back to master branch, and then merge alternate branch merge (squash) git checkout-B contact master // create a new branch; git add contact.html and git commit-m "add contact.html "; git checkout master back to master branch git merge -- squash contact // compress all the commit entries on the branch into one commit entry and submit it to the end of the other branch; you can use git status and git log to view the status in the temporary storage zone.; You can use git commit to submit the pick and merge (cherry-picks) git checkout contact // to the contact branch; git commit-m "add witter "; git chechout master git log git checkout master // return to the master node git cherry-pick 321d76f // pick up the commit entry git reset -- hard HEAD ^ git cherry-pick-n 321d76f // example you need to select multiple commits and use git cherry-pick-n. Then you can use git status to view the status git commit-m "cherry-pick commit. "// commit conflicts again. For simple conflicts, You can manually modify them. For complex conflicts, you must use the visualization tool git mergetool // git merge tool me. Rge. tool value // kdiff3, tkdiff meld xxdiff emerge, vimdiff, gvimdiff ecmerge, opendiff, and other tools. Git branch-d about // Delete the about branch. If the branch is not merged, a prompt is displayed: git branch-D about // Delete the about branch, git branch-m master mymaster will be deleted no matter whether it is merged or not. // rename the master branch to mymaster git branch-M mymaster master // rename mymaster to master no matter whether matser is saved or not, it will overwrite