You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With git cherry-pick, you can add a commit from branch1 to branch2. Let's say we have a master branch and a side branch. If we want to add commit x from side to master-
gitcheckoutmastergitcherry-pick<commit-x-hash>
Now commit x will be the latest commit in master. Without rebasing or merging, cherry-pick enables us to add a single commit.