mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-09-09 01:33:33 +02:00
git am: add page (#2352)
This commit is contained in:
parent
43f95b2894
commit
44d8dac074
1 changed files with 16 additions and 0 deletions
16
pages/common/git-am.md
Normal file
16
pages/common/git-am.md
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
# 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}}`
|
Loading…
Add table
Reference in a new issue