I am new to git related platforms, currently working primarily with github and gitlab on the side for project purposes. I have a confusion regarding an abstract terminology, it's related to fetching commits(perhaps unmerged or in different branch or from anywhere within a repo).
As far as I understand, we use cherry-picking when there are two branches(refactor,master) in a repository, and we want to pick a particular commit(X) out of one branch(refactor) and get in it another branch (master). (According to numerous sources out in the interweb)
Is it possible to cherry-pick within a same branch? Is that even why cherry-pick exist?
Someone told me that cherry-pick does not have to do with branches at all, that abstractly "cherry-pick" in general stands for just picking any commit from anywhere (same or different branch)
Let me give an example scenario.
Let's say we have a master branch, and some people have sent some pull requests, which are yet to be committed, and someone wants to fetch those commits to test them before they get merged... I know how to fetch that commit, but my question is, is doing that known as "cherry-pick"? That cherry-pick does not have to do with branches?
Thank you for reading.