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

Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future. Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future.
Community Partners