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.
Loading...
Related Quiz
- In Git, a release is often marked with a ________, representing a stable point in the development.
- When cherry-picking a commit, Git creates a new commit with a different ________ even if the content is the same.
- Your project has a dependency on a large external library. What Git feature would be most efficient to manage this dependency?
- Agile development benefits from Git's __________, which allows for quick pivots in project direction.
- A developer is working on a feature in a separate branch and needs to incorporate updates made in the main branch. What Git process should they use?