1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages.de/common/git-apply.md
Sebastiaan Speck dcb53c85a0
pages*: update outdated pages (#11821)
Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>
Co-authored-by: Juri Dispan <juri.dispan@posteo.net>
Co-authored-by: Isaac Vicente <isaacvicentsocial@gmail.com>
2023-12-28 16:48:20 +01:00

28 lines
770 B
Markdown

# git apply
> Integriere eine Patch-Datei und/oder füge sie zum Index hinzu.
> Weitere Informationen: <https://git-scm.com/docs/git-apply>.
- Gib Informationen über gepatchte Dateien aus:
`git apply --verbose {{pfad/zu/datei}}`
- Integriere die Patch-Datei und füge sie zum Index hinzu:
`git apply --index {{pfad/zu/datei}}`
- Integriere eine externe Patch-Datei:
`curl -L {{https://beispiel.de/datei.patch}} | git apply`
- Gib diffstat des Inputs aus und integriere die Patch-Datei:
`git apply --stat --apply {{pfad/zu/datei}}`
- Integriere eine Patch-Datei in umgekehrter Reihenfolge:
`git apply --reverse {{pfad/zu/datei}}`
- Speichere das Ergebnis einer Patch-Datei im Index, ohne den Arbeitsbaum zu verändern:
`git apply --cache {{pfad/zu/datei}}`