From cb8d13228f7dcb58f7e891dfd57493209ecc5518 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Mon, 3 Apr 2017 12:37:59 -0700 Subject: squeeze --- docs/misc/patch.md | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'docs/misc/patch.md') diff --git a/docs/misc/patch.md b/docs/misc/patch.md index 73d4979a..419654a7 100644 --- a/docs/misc/patch.md +++ b/docs/misc/patch.md @@ -4,8 +4,6 @@ This is just a quick guide for reference, use 'man' to know more. [Back to index](./) - - Apply a patch ============= @@ -13,7 +11,6 @@ To apply a patch to a single file, do that in it's directory: $ patch < foo.patch - Assuming that the patch is distributed in unified format identifying the file the patch should be applied to, the above will work. Otherwise: @@ -46,10 +43,6 @@ Removing a patch using the -R flag $ patch -p5 -R < baz.patch -[Back to top of page.](#pagetop) - - - Create a patch with diff ======================== @@ -65,10 +58,6 @@ Do whatever you want in new/ and then diff it: $ diff -rupN original/ new/ > original.patch -[Back to top of page.](#pagetop) - - - git diff ======== @@ -88,10 +77,6 @@ Alternatively (better yet), commit your changes and then use: $ git format-patch -N Replace N with the number of commits that you want to show. -[Back to top of page.](#pagetop) - - - git apply ========= @@ -110,10 +95,6 @@ If you use a patch from git format-patch, then use **git am patch.git** instead of **git apply patch.git**. git-am will re-create the commits aswell, instead of just applying the patch. -[Back to top of page.](#pagetop) - - - Copyright © 2014, 2015 Leah Rowe \ Permission is granted to copy, distribute and/or modify this document under the terms of the Creative Commons Attribution-ShareAlike 4.0 -- cgit v1.2.3-70-g09d2