What does git cherry-pick origin/master
mean? How does this instruction work?
When updating current local master branch from remote (i.e., fetch data from remote and merge with local files), we could use the following options:
git pull origin master
git fetch origin master; git merge origin/master
git fetch origin master; git rebase origin/master
git fetch origin master; git cherry-pick origin/master
But I cannot understand git cherry-pick origin/master
and cannot find the explanation.
I am curious about the following things: when I use git fetch origin master; git cherry-pick origin/master
to try to update current local master branch from remote, this action compares previous commits and brings the different parts as modified files, so I can use one commit to includes these modified parts. How does it work?