Source: www.amitmerchant.com

Cherry picking commits in Git
I have been using Git since the start of my career (Which spans 10 years now). I have heard about this Git’s feature called cherry-pick every now and then but I haven’t been in a situation where I would actually use it.

The featureX branch had some commits which haven’t been merged to the main branch yet.

The featureA branch had commits of the featureX branch.

It’s a nice little Git command using which you can apply the changes introduced by some existing commits of a branch to another branch.
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge. Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge.
Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Shirts painstakingly handcrafted by under-caffeinated developers. Shirts painstakingly handcrafted by under-caffeinated developers.
Community Partners