mirror of
https://github.com/tldr-pages/tldr.git
synced 2024-11-10 11:29:59 +03:00
18 lines
436 B
Markdown
18 lines
436 B
Markdown
# git am
|
|
|
|
> Apply patch files. Useful when receiving commits via email.
|
|
> See also `git format-patch`, which can generate patch files.
|
|
> More information: <https://git-scm.com/docs/git-am>.
|
|
|
|
- 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}}`
|