logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Patch File - Apply Diff Patches | Online Free DevTools by Hexmos

Apply file patches with patch command. Revert changes, create new files, and update code bases quickly. Free online tool, no registration required.

patch

Patch a file (or files) with a diff file. Note that diff files should be generated by the diff command. More information: https://manned.org/patch.

  • Apply a patch using a diff file (filenames must be included in the diff file):

patch < {{patch.diff}}

  • Apply a patch to a specific file:

patch {{path/to/file}} < {{patch.diff}}

  • Patch a file writing the result to a different file:

patch {{path/to/input_file}} {{[-o|--output]}} {{path/to/output_file}} < {{patch.diff}}

  • Apply a patch to the current directory:

patch {{[-p|--strip]}} 1 < {{patch.diff}}

  • Apply the reverse of a patch:

patch {{[-R|--reverse]}} < {{patch.diff}}

See Also