patch
Patch a file (or files) with a diff file. Note that diff files should be generated by the
diffcommand. More information: https://manned.org/patch.
- Apply a patch using a diff file (filenames must be included in the diff file):
patch
- Apply a patch to a specific file:
patch
- Patch a file writing the result to a different file:
patch
- Apply a patch to the current directory:
patch 1
- Apply the reverse of a patch:
patch
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
