patch file.txt < changes.patch

Category: File Operations

patch file.txt < changes.patch

Apply a patch file to update a file

Applies a patch file to update a file with the changes described in the patch. Used to distribute code changes.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.