git-am
Apply patch files and create a commit. tldr-pages
On several platforms
Several platforms
Apply patch files and create a commit. Useful when receiving commits via email.
Apply and commit changes following a local patch file
git am path/to/file.patchIdentifyApply and commit changes following a remote patch file
curl --location https://example.com/file.patch | git amIdentifyTrips 1 Sigma rule: lowCurl Usage on Linux by Nasreddine Bencherchali (Nextron Systems)
Abort the process of applying a patch file
git am --abortIdentifyApply as much of a patch file as possible, saving failed hunks to reject files
git am --reject path/to/file.patchIdentify