About diffs and patches

From Elvanör's Technical Wiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Applying a patch

  • If you want to simply apply a given patch to an original file, the syntax is:
patch original_file patch_file
  • If you want to apply a patch to a directory:
patch -p 0 -i patch_file.diff # 0 is the patch level