1. Create another branch git checkout -b mergedemo
Create the file vi 123.text
12334
1233
ESC colon wq
cat 123.text
git add 123.text to track this file
git commit -m "add merged content"
git push --set-upstream origin mergedemo The modified content is pushed to the remote end because it is a new branch, so it is not possible to use git push alone
git checkout master switches to the master branch
git merge mergedemo The content of a branch is merged into the current branch. You are currently switching.