#TIL 38 - Cherry pick git merge from CLI

Mar 9, 2023 · Dung Huynh

What

Cherry-pick a merge commit to another branch.

Why

Sometimes you need the changes from a merge commit without merging the entire branch.

How

git cherry-pick <merge-commit-hash> -m 1

-m 1 specifies the first parent branch as the source of changes.