DEV Community

How to merge a specific commit into another branch

Richard Umoffia on February 15, 2018

I really hope this title is self-explanatory enough cause this was the best I could think of. I know we are all very busy so I'll go straight to th...
Collapse
 
elarcis profile image
Elarcis • Edited

The command line alternative would have been git cherry-pick <commitA..commitB>, where commitA is the commit right before the oldest commit to pick, and commitB the last one. You can check commits hashes either via GitLens or git log.

Collapse
 
chrisvasqm profile image
Christian Vasquez

You can have my 🦄 because you showed it both in the Terminal and VS Code 😎

Collapse
 
sadiasher profile image
Sadia

awesome article, it saved my time

Collapse
 
khai-jt profile image
Khai J. Thani

This helped me. Thanks!

Collapse
 
kalecio profile image
Kalécio

Thanks for saving me today <3

Collapse
 
prosenjitmanna profile image
Prosenjit Manna

Thank you

Collapse
 
ludakhris profile image
Mind Yo Chow

Great post I love "I promised to keep this short, so goodbye! I hope this helps."

Collapse
 
rifqiahmaddani profile image
rifqiahmaddani

Thank you, straight to the point!

Collapse
 
alais29dev profile image
Alfonsina Lizardo

you just saved me from wasting hours of my life, thank you!

Collapse
 
fabiancnieto_34 profile image
Fabian Nieto

Nice post and direct to the point, thank you!

Collapse
 
erandkings profile image
Kingsley Chijioke

Thanks for this piece. It really helped me.