Which situation best explains why git cherry-pick is useful?
Think about applying only one change, not all changes.
git cherry-pick lets you take a single commit from another branch and apply it to your current branch. This is useful when you want just one fix or feature without merging everything.
What is the output of this command if the cherry-pick is successful?
git cherry-pick 9fceb02
Successful cherry-pick shows commit info and changes summary.
When cherry-pick applies a commit successfully, it shows the new commit hash, message, date, and file changes.
You run git cherry-pick abc123 but get a conflict error. What is the best next step?
Conflicts need manual fixing before continuing.
When cherry-pick conflicts occur, you must fix the files manually, then use git cherry-pick --continue to finish.
In a hotfix workflow, you fix a bug on the hotfix branch and want to apply the fix to develop without merging all hotfix changes. What command do you use?
You want only the bug fix commit, not the whole branch.
Cherry-pick lets you apply just the bug fix commit from hotfix to develop without merging all hotfix commits.
You need to cherry-pick several commits from one branch to another. What is the best practice?
Order matters to keep changes consistent.
Applying commits in the original order helps avoid conflicts and preserves logical history.