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

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -