git: cherry-pick

    xiaoxiao2026-10-06  3

    What is cherry-pick 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 applies many commits onto a another branch.

    steps: Make sure you are on the branch you want apply the commit to.

    git checkout master

    Execute the following:

    git cherry-pick commit-hash

    Cherry-Picking specific commits from another branch

    转载请注明原文地址: https://ju.6miu.com/read-1312673.html
    最新回复(0)