1 min read

Cherry picking in Git

One selected commit copied between two parallel Git branches.

Cherry picking in Git

Cherry picking in Git means to choose a commit from one branch and apply it onto another. This is in contrast with other ways such as merge and rebase which normally apply many commits onto another branch.

  1. Make sure you are on the branch you want to apply the commit to.
 git switch <branch_name>
  1. To get a commit you want execute the following:
 git cherry-pick <commit-hash>

for more about git cherry-pick: https://git-scm.com/docs/git-cherry-pick

  • Growth5 min read ↗
  • Engineering

    Git Stash

    Git stash is a built-in command with the distributed Version control tool in Git that locally stores all the most recent changes in a workspace and resets the state of the workspace to the prior commit state.

    2 min read ↗
  • Engineering

    Git Branching

    Branching is a feature available in most modern version control systems.

    3 min read ↗