1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 16:22:08 +02:00
tldr/pages/common/git-am.md
2018-09-25 07:47:56 +01:00

16 lines
381 B
Markdown

# 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}}`