Search code examples
magitgit-patch

How to apply patch in reverse?


How, if possible, to apply patch in reverse with Magit?


Solution

  • Use v. For more information see the Applying section in the manual.

    If you use the Evil package and more specifically evil-magit, then a different key, -, is bound to the revert command. evil-magit's documentation contains a table listing basic key bindings. It also shows what bindings differ between evil-magit and vanilla Magit.