Skip to content

Instantly share code, notes, and snippets.

@mijorus
Last active February 28, 2025 03:14
Show Gist options
  • Save mijorus/9c82c68a6db8718102e9b5367e016b08 to your computer and use it in GitHub Desktop.
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

@Dagur
Copy link

Dagur commented May 16, 2023

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.

@dchevilletRDR
Copy link

Thanks !

@tvannahl
Copy link

Thank you - has been most helpful 🙏

@mrpeski
Copy link

mrpeski commented Dec 19, 2024

Thank you for this!

@wjilei
Copy link

wjilei commented Feb 7, 2025

Thank you, that helps me a lot.

@KamiALK
Copy link

KamiALK commented Feb 16, 2025

thanks

@nicoaudy
Copy link

Thanks!

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