git - pull only the last commit from remote and put it on the top -
i've got commits on 2 remotes
origin 1-2-3-4-5-a upstream 1-2-3-4-5-6-7
on local machine i've got upstream version of commits.
but question how acquire commit origin , put on top of current commits? mean result should 1-2-3-4-5-6-7-a
.
that's git cherry-pick
for.
switch local repo branch want change. then:
git cherry-pick
you can specify commit sha hash, or can use branch name pick last commit.
Comments
Post a Comment