Eclipse - Apply specific commit to other branch

By xngo on February 26, 2020

In Eclipse, the process of applying a specific commit to another branch is called Cherry Picking. Here is how you would do it.

  1. Switch to the branch that you want the commit to be applied.
    • Right-click on your project and then select Team > Switch To.
  2. Open the history.
    • Right-click on your project and then select Team > Show in History.
  3. Set to view all branches and tags.
    • Click on the triangle at the top-right corner.
    • Select Show.
    • Check All Branches and Tags.
      Eclipse - Show in History - All Branches and Tags
  4. Right-click on the commit that you like and select Cherry-Pick.... Then, following the instructions.

About the author

Xuan Ngo is the founder of OpenWritings.net. He currently lives in Montreal, Canada. He loves to write about programming and open source subjects.