In a distributed team, a developer needs to integrate a hotfix into multiple branches efficiently. What Git approach or feature should they use?

  • Git cherry-pick
  • Git merge --squash
  • Git rebase --onto
  • Git submodules
The Git approach that allows a developer to integrate a hotfix into multiple branches efficiently is Git cherry-pick. Cherry-pick enables the selection of specific commits and applies them to another branch, making it suitable for applying hotfixes to multiple branches without merging the entire branch.
Add your answer
Loading...

Leave a comment

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