Merge Specific Commits from a Git Pull Request
Oct 21, 2024
The scenario Think of an instance someone submits a git pull request to one of your repositories. Now, if you’ve ever been in that position, you know sometimes there are good commits, and bad commits, all inside the same pull request.
In instances as above, one way to move forward is accept the changes in specific commits (good), then have approved and merged.
The tools We can use the cherry-pick functionality in git when encountered with scenarios as above, which allows us to “cherry pick” only the commits we want from another branch.…