Monday 29 July 2024

GIT cherry pick , GIT revert a revert of merge request

 GIT revert a revert of merge request

    use GIT cherry pick

https://stackoverflow.com/questions/9339429/what-does-cherry-picking-a-commit-with-git-mean


Cherry-picking in Git means choosing a commit from one branch and applying it to another.

This contrasts with other ways such as merge and rebase which normally apply many commits to another branch.

It's also possible to cherry-pick multiple commits but merge is the preferred way over cherry-picking.

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

    git switch master
    
  2. Execute the following:

    git cherry-pick <commit-hash>

No comments:

Post a Comment