Previous: , Up: Transferring   [Contents][Index]


7.6 Applying Patches

Also see the git-am(1) manpage. and the git-apply(1) manpage.

w     (magit-am-popup)

This prefix command shows the following suffix commands along with the appropriate infix arguments in a popup buffer.

w w     (magit-am-apply-patches)

Apply one or more patches. If the region marks files, then apply those patches. Otherwise read a file name in the minibuffer defaulting to the file at point.

w m     (magit-am-apply-maildir)

Apply the patches from a maildir.

When an "am" operation is in progress, then the popup buffer features these commands instead.

w w     (magit-am-continue)

Resume the current patch applying sequence.

w s     (magit-am-skip)

Skip the stopped at patch during a patch applying sequence.

w a     (magit-am-abort)

Abort the current patch applying sequence. This discards all changes made since the sequence started.

In addition to the commands listed at the top, the "am" popup also has a binding for the related "patch" popup.

w a     (magit-patch-apply-popup)

This prefix command shows the following suffix commands along with the appropriate infix arguments in a popup buffer.

w a a     (magit-patch-apply)

This command applies a simple patch file, which may not contain any Git metadata in addition to the actual diff.