eclipse - How to cherry pick from branch A to branch B on a system without history? -


suppose have new system no git history , take fresh checkout of branch a. branch has commit c1 did yesterday other system. want cherry-pick commit c1 in branch b. issue:

  1. if take checkout of branch , go commit c1 (in history in git view) , click 'cherry pick', says want cherry pick in branch a? so, there no discussion of branch b here.
  2. if take checkout of branch b not show commit c1 @ all.

now, how cherry pick commit c1 of branch branch b? using gerrit, gitblit , egit in eclipse.

i'm not familiar gui using in particular, concept describing acceptable in git.

to cherry-pick commit branch branch b, use following command line commands:

git checkout branchb git cherry-pick hashofc1 

there should sort of 'view branches' mode in gui using can see commit c1 while having branch b checked out, if not, above commands simple enough execute.


Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -