From 44d8dac074865ca787632165470054793898fb46 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Tue, 25 Sep 2018 07:47:56 +0100 Subject: [PATCH] git am: add page (#2352) --- pages/common/git-am.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 pages/common/git-am.md diff --git a/pages/common/git-am.md b/pages/common/git-am.md new file mode 100644 index 0000000000..db7eb2a418 --- /dev/null +++ b/pages/common/git-am.md @@ -0,0 +1,16 @@ +# git am + +> Apply patch files. Useful when receiving commits via email. +> See also `git format-patch`, which can generate patch files. + +- Apply a patch file: + +`git am {{path/to/file.patch}}` + +- Abort the process of applying a patch file: + +`git am --abort` + +- Apply as much of a patch file as possible, saving failed hunks to reject files: + +`git am --reject {{path/to/file.patch}}`