Skip to content

Latest commit

 

History

History
21 lines (14 loc) · 341 Bytes

index.md

File metadata and controls

21 lines (14 loc) · 341 Bytes

git cherry-pick-merge

Cherry pick a merge commit

Git alias:

cherry-pick-merge = !"sh -c 'git cherry-pick --no-commit --mainline 1 $0 && \
    git log -1 --pretty=%P $0 | cut -b 42- > .git/MERGE_HEAD && \
    git commit --verbose'"

Thanks to cody cutrer.

TODO: write summary

Example:

git cherry-pick-merge