A developer needs to apply a hotfix from the master branch to a release branch without merging other changes. What Git feature should they use?

  • Cherry-pick
  • Merge
  • Rebase
  • Clone
The correct option is Cherry-pick. This Git feature allows a developer to select a specific commit and apply it to another branch, making it ideal for applying isolated changes such as hotfixes. Unlike merge or rebase, cherry-pick targets a single commit.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *