Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Devops
  3. Question
Devops

How to cherry-pick multiple commits -git cherry pick multiple commits

Asked by Ankit Chauhan Jun 8, 2021 2.0K views 1 answer
Share

About this question

I have two branches. Commit a is the head of one, while the other has b, c, d, e and f on top of a. I want to move c, d, e and f to first branch without commit b. Using cherry-pick it is easy: checkout first branch cherry-picks one by one c to f and rebase the second branch onto first. But is there any way to cherry-pick all c-f in one command?

Here is a visual description of the scenario:



Your answer

1 Answer

More Devops discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest DevOps Blogs

Guides, tips and career advice on DevOps from JanBask experts.