Import patch.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Tue, 19 Dec 2017 17:26:06 +0200
changeset 2211 473f6c2b0fdf
parent 2210 d62eb2a97d30
child 2212 aec79721c8aa
Import patch.
git.rst
--- a/git.rst	Thu Dec 14 01:20:06 2017 +0200
+++ b/git.rst	Tue Dec 19 17:26:06 2017 +0200
@@ -429,6 +429,29 @@
   $ $EDITOR $LOG
   $ git bisect replay $LOG
 
+Import patch
+============
+
+Check patch summary::
+
+  git apply --stat my.patch
+
+Detect possible errors during patch application::
+
+  git apply --check my.patch
+
+Apply patch to working tree without commit::
+
+  git apply my.patch
+
+Commit patch::
+
+  git am my.patch
+
+Commit patch by signing you as reviewer::
+
+  git am --signoff my.patch
+
 Debug git network operation
 ===========================