tldr/pages.de/common/git-apply.md

17 lines
441 B
Markdown
Raw Normal View History

2020-10-04 00:07:23 +01:00
# git apply
2021-03-25 16:42:04 +00:00
> Integriere eine Patch-Datei und/oder füge sie zum Index/Stage hinzu.
> Weitere Informationen: <https://git-scm.com/docs/git-apply>.
2020-10-04 00:07:23 +01:00
2021-03-25 16:42:04 +00:00
- Gib Meldungen über eine gepatchten Datei aus:
2020-10-04 00:07:23 +01:00
2021-03-25 16:42:04 +00:00
`git apply --verbose {{pfad/zu/datei}}`
2020-10-04 00:07:23 +01:00
2021-03-25 16:42:04 +00:00
- Integriere die Patch-Datei und füge sie zum Index/Stage hinzu:
2020-10-04 00:07:23 +01:00
2021-03-25 16:42:04 +00:00
`git apply --index {{pfad/zu/datei}}`
2020-10-04 00:07:23 +01:00
2021-03-25 16:42:04 +00:00
- Integriere eine externe Patch-Datei:
2020-10-04 00:07:23 +01:00
2021-03-25 16:42:04 +00:00
`curl {{https://beispiel.de/datei.patch}} | git apply`