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.
Loading...
Related Quiz
- What is the significance of signing tags in Git?
- To ensure code quality in open source projects, Git can integrate with ________ tools for automated code review and analysis.
- In a code review, checking for _______ and _______ is essential to maintain code quality.
- When a merge conflict occurs, what does Git use to mark the conflicted area in the files?
- The ________ branch in Gitflow is used for integrating features before a release.