How can you cherry-pick a commit from another branch into your current branch in Git?

  • git pick -c
  • git cherry-pick
  • git apply
  • git merge
The correct option is git cherry-pick . This command allows you to apply the changes introduced by the specified commit to your current branch. Cherry-picking is useful for selectively bringing in specific changes.
Add your answer
Loading...

Leave a comment

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