Thread (25 messages) 25 messages, 5 authors, 10h ago

Re: [PATCH 5/7] [doc] git-cherry-pick: link to new merge conflicts guide

From: Junio C Hamano <hidden>
Date: 2026-09-28 21:25:06

"Julia Evans" [off-list ref] writes:
My best guess (based on what you said) is that `CHERRY_PICK_HEAD` is
only useful if you're cherry-picking multiple commits at the same time.
Is the following an accurate explanation?:
quoted
If the conflict happened when cherry picking multiple commits, you can run
`git show CHERRY_PICK_HEAD` to see the commit that Git failed to apply.
You do not have to limit yourself to the multi-pick case.  If you
make it a habit to use CHERRY_PICK_HEAD, you do not have to remember
exactly which commit you specified on the command line to pick when
stopped by a conflict during a cherry-pick.  This is especially true
for those who have already made it a habit to use MERGE_HEAD when
stopped by a conflict during a merge.  Not having to think when you
can mechanically perform a routine task is bliss.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help