The main purpose of this article is to record the content of other bloggers. Please check the original blogger for details .
The following are the main operations. There are two branches master and tenant, and there are multiple submissions on the tenant branch, but I only want to submit a certain two on the master branch.
Step 1: Check the branch commit record
git log tenant
- If the commit record is relatively long and you want to quit, press "q", otherwise the log will be loaded all the time.
Step 2: Switch to the branch master to be merged
git checkout master
Step 3: Perform the merge
git cherry-pick 6b4182a807ef4e30b7da3ea9bf7211b4de9a7b6f
Step 4: Push to Remote
git push