I use gerrit. I have fetched a remote repository. Now I have two options checkout
or cherry-pick
. I have tried the second options (cherry-pick
) and the result that I got this way looks to me as I wonted (in my local repository I see my changes of the code as well a the changes introduced by the commit that I have fetched and cherry-picked).
However, my colleague insist that I need to checkout
because "checkout also merges its dependencies". I have tried to checkout but, as a result, I do not see my changes in the code (I see only the changes introduced by the remote commit, that I have fetched and checked out). This behavior is, kind of, makes sense to me as well (I just put the HEAD of the repository to another "line of changes", it is like I switch to completely another brunch and, as a consequence, I do not see there changes from my original branch, where I did all my changes).
Now, I want to understand what my colleague wants from me. Why should I checkout and how exactly should it be done (with what sequence of commands)? Should I first create a new branch for the remote changes that I will check out? Should I merge this new branch into my branch with my changes?