TOOL » LINUX » PACKAGE

Patch

Usage ​

shell
patch OPTIONS ORIGINAL_FILE PATCH_FILE
OptionDescription
-pStrip the smallest prefix containing num leading slashes from each file name found in the patch file.

Example ​

Apply a patch generated by git diff:

shell
patch -p1 < git_diff.patch