
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.
- Make sure you are on the branch you want to apply the commit to.
git switch <branch_name>
- 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
Related articles
Mastering Git Bisect: A Developer's Guide to Efficient Debugging
Dive deep into the world of Git Bisect to uncover how this powerful tool can revolutionize your debugging process, making it more efficient and less time-consuming.
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.
Git Branching
Branching is a feature available in most modern version control systems.