Git merge commits selectively -
i have question git i've never had do, learn!
in project branched off master
while back; rewrite of entire codebase, let's call rewrite
. in time have been working on rewrite
have made , deployed significant changes master
. rewrite coming close, want bring speed changes made on master since started branch.
usually git checkout rewrite && git rebase master
, solve conflicts arise, time around can guarantee every commit have conflict since codebase entirely different.
tl;dr wondering how go taking each commit on master
, one-by-one merging them rewrite
, @ own pace , possibly out of order if need be.
you can use git cherry-pick
command put specific commit branch.
you can use gitk --all
see commits , select commit want cherry-pick interactively branch.
Comments
Post a Comment