From abdf0e1482e33df16c131eccf8b72ce4ce8f205f Mon Sep 17 00:00:00 2001 From: Camilla Krag Jensen Date: Sat, 25 Oct 2014 13:20:07 +0200 Subject: [PATCH] Add patch command. --- pages/common/patch.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 pages/common/patch.md diff --git a/pages/common/patch.md b/pages/common/patch.md new file mode 100644 index 0000000000..912a50171c --- /dev/null +++ b/pages/common/patch.md @@ -0,0 +1,15 @@ +#patch + +> Patch a file or files with a diff file. + +- apply a patch + +`patch < {{patchfile}}.diff` + +- apply a patch to current directory + +`patch -p1 < {{patchfile}}.diff` + +- reverse a patch + +`patch -R < {{patchfile}}.diff`