tldr/pages/common/git-am.md

18 lines
428 B
Markdown
Raw Normal View History

2018-09-25 07:47:56 +01:00
# git am
> Apply patch files. Useful when receiving commits via email.
> See also `git format-patch`, which can generate patch files.
2019-01-30 11:19:23 +00:00
> Homepage: <https://git-scm.com/docs/git-am>.
2018-09-25 07:47:56 +01:00
- 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}}`