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-add.md
Managor 435cb8ce29
*: fix style guide issues part 3 (#15786)
Co-authored-by: Darío Hereñú <magallania@gmail.com>
2025-03-07 13:43:12 +02:00

32 lines
754 B
Markdown

# git add
> Füge Dateien zum Index/Stage hinzu.
> Weitere Informationen: <https://git-scm.com/docs/git-add>.
- Füge eine bestimmte Datei zum Index hinzu:
`git add {{pfad/zu/datei}}`
- Füge alle Dateien zum Index hinzu (nachverfolgte und nicht nachverfolgte):
`git add {{[-A|--all]}}`
- Füge nur nachverfolgte Dateien zum Index hinzu (Updaten des Index):
`git add {{[-u|--update]}}`
- Füge auch Dateien, welche ignoriert werden (`.gitignore`) hinzu:
`git add {{[-f|--force]}}`
- Füge Teile von Dateien zum Index interaktiv hinzu:
`git add {{[-p|--patch]}}`
- Füge Teile einer bestimmten Datei interaktiv hinzu:
`git add {{[-p|--patch]}} {{pfad/zu/datei}}`
- Füge Dateien zum Index interaktiv hinzu:
`git add {{[-i|--interactive]}}`