Skip to content

Instantly share code, notes, and snippets.

@mijorus
Last active June 19, 2024 18:21
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

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 c, you can select more than one
  2. Go to the "Commit" panel (in the "Branches" panel it doesn't work) and press v, will ask for confirmation.
  3. DONE

EDIT: With the latest release, c and v are replaced with Shift + c and Shift + v

@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 !

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