AppCode Web Help

Applying Changes from a Specific Commit to Other Branches (Cherry Picking)

Suppose, you have two diverged branches, master and experimental. One day, you decide to integrate changes from one specific commit in experimental to branch_2. With AppCode, you can cherry pick between branches right from the Changes tool window.

Unlike the native git cherry-pick action, AppCode does not commit the selected changes to the other branch automatically but stores them in a new change list.

To cherry pick changes between two branches

  1. Switch to the target branch the changes will be integrated to.
  2. Open the Changes tool window and switch to the Log tab.
  3. From the Branch drop-down list on the toolbar, select the source branch from which you want to integrate the changes.
  4. From the Commits list, select the required commit. Use the commit information below, if necessary.
  5. Click the Cherry-pick button cherryPickButton.png on the toolbar. AppCode displays a dialog box that informs you that changes are going to be cherry-picked to the current branch. Click Continue to launch cherry picking. When cherry picking is completed, AppCode displays the corresponding information message.
  6. Switch to the Local tab where the cherry picked changes are grouped in a new change list. The name of this change list is the commit message of the commit the changes are cherry picked from.
  7. Commit the changes from the new change list.

See Also

Last modified: 27 December 2014
comments powered by Disqus