Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cherry pick onto another branch in Eclipse git

In Eclipse using egit, is it possible to cherry pick a commit (in my case on the currently checked out branch, e.g. master) onto another branch B without first having to check out B?

This would be quite a time saver...

NB, this is explicitly about cherry picking (involving merging) and not just fetching other branches as asked before

like image 837
JRA_TLL Avatar asked Mar 20 '26 15:03

JRA_TLL


1 Answers

To Cherry Pick a commit from another branch in Eclipse:

  1. Switch to the branch where you want to get the commit
  2. Select the project in 'Project Explorer' tab and look for the 'History' tab.
  3. Make sure that in the History tab is enabled 'Show All Branches and Tags'
  4. Search for the commit to cherry pick, select it, right click and 'Cherry-Pick'
  5. If the case solve conflicts
  6. Commit and push
like image 138
Maxim Z Avatar answered Mar 22 '26 05:03

Maxim Z