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

Step : Pick From other Branch

Switch your current branch

enter image description here

  1. Click / Tick / Show all Branch
  2. Select and right click -> cherry pick the commit

enter image description here

  1. continue until finish.
  2. Right click project and push commit on current branch.

goto "Team Synchronizing", right click on project to display the menu. select show In -> History. This will display History tab with changesets.

enter image description here history tool bar

when you click on icon with 2 arrows downwards then you will see all the changes even those not from your branch. Right click on changeset that you want to cherry pick and then select Cherry Pick.. option as shown in the picture

enter image description here


Qualatar comment is a little outdated, here is how to show all branches in 'Show History' in 'Version: Luna SR2 (4.4.2)' so that you can 'right click > Cherry Pick'.

how to see all commits in Eclipse IDE EGIT to cherry pick


I'm not familiar with the GUI you are using in particular, but the concept you are describing is perfectly acceptable in git.

To cherry-pick a commit from branch A to branch B, use the following command line commands:

git checkout branchB
git cherry-pick hashOfC1

There should be a sort of 'view all branches' mode in the GUI you are using so that you can see commit C1 while having branch B checked out, but if not, the above commands are simple enough to execute.