Skip to content

Instantly share code, notes, and snippets.

@mijorus
Last active May 16, 2026 12:50
Show Gist options
  • Select an option

  • Save mijorus/9c82c68a6db8718102e9b5367e016b08 to your computer and use it in GitHub Desktop.

Select an option

Save mijorus/9c82c68a6db8718102e9b5367e016b08 to your computer and use it in GitHub Desktop.
Lazygit: how to cherry-pick

How to cherry pick with LazyGit

I'm writing this because I found it harder than expected, but actually is super easy.

  1. From the "Commit" panel (or the "Branches" panel) focus on a commit an press Shift + c, you can select more than one
  2. Go to the "Commit" panel (in the "Branches" panel it doesn't work) and press Shift + v, will ask for confirmation.
  3. DONE

NOTE On older versions, you simply had to press c and v without Shift

@mrpeski

mrpeski commented Dec 19, 2024

Copy link
Copy Markdown

Thank you for this!

@wjilei

wjilei commented Feb 7, 2025

Copy link
Copy Markdown

Thank you, that helps me a lot.

@KamiALK

KamiALK commented Feb 16, 2025

Copy link
Copy Markdown

thanks

@nicoaudy

Copy link
Copy Markdown

Thanks!

@radomirmijovic

Copy link
Copy Markdown

thanks man!

@CEOehis

CEOehis commented May 27, 2025

Copy link
Copy Markdown

Thanks!

@imnaK

imnaK commented Jun 5, 2025

Copy link
Copy Markdown

Thanks! Short and clear!

@marcagba

marcagba commented Jun 24, 2025

Copy link
Copy Markdown

How do I "paste" with with --no-commit?

edit: I never found a way to do it. Instead I just paste and then do a soft reset.

For those landing on this gist and searching for how to do this, I'm pretty sure the answer is to use the custom patches feature !

@jefeenders

Copy link
Copy Markdown

Using shift + v did not work for me. But just selecting the command in the help panel (with pressing ?) did what I wanted.

@nekomangini

Copy link
Copy Markdown

Thanks!

@YGWoah

YGWoah commented Dec 18, 2025

Copy link
Copy Markdown

this did not work for me , @jefeenders i didn't find the command for pasting a commit

@dplaton

dplaton commented Jan 21, 2026

Copy link
Copy Markdown

Thank you!

@Steven147

Copy link
Copy Markdown

Thanks!

@jbarnat

jbarnat commented May 16, 2026

Copy link
Copy Markdown

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment