Update cheatsheets

This commit is contained in:
ivuorinen
2024-02-21 11:19:49 +00:00
parent 4e88a1b42f
commit 3d653cc7e6
4803 changed files with 127002 additions and 0 deletions

26
git-am Normal file
View File

@@ -0,0 +1,26 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# git am
> Apply patch files and create a commit. 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 and commit changes following a local patch file:
`git am {{path/to/file.patch}}`
- Apply and commit changes following a remote patch file:
`curl -L {{https://example.com/file.patch}} | git apply`
- 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}}`