git am
all
Apply patch files and create a commit. Useful when receiving commits via email. See also: `git format-patch`.
More info →Options (1)
-L, --locationbooleanApply and commit changes following a remote patch file
Example:
curl {{[-L|--location]}} {{https://example.com/file.patch}} | git amExamples (4)
Apply and commit changes following a local patch file
git am path/to/file.patchApply and commit changes following a remote patch file
Abort the process of applying a patch file
git am --abortApply as much of a patch file as possible, saving failed hunks to reject files
git am --reject path/to/file.patchmade by @shridhargupta | data from tldr-pages