Skip to main content


One of my favourite #emacs #magit features is `magit-cherry-donate`.

It moves a commit from the current branch to another branch without switching to the other branch.

This is really great when you work on feature X and see a typo or a mistake that isn't related to what you're currently working on: Just create a quick “Fix typo” commit and move it to `main` (or some branch where you'll process it later) and continue working on your feature – without risking including an unrelated, distracting change in your commit/PR, and without having to remember it for later.

https://magit.vc/manual/magit/Cherry-Picking.html