mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 23:24:55 +02:00
32 lines
698 B
Markdown
32 lines
698 B
Markdown
# git add
|
|
|
|
> Füge Dateien zum Index/Stage hinzu.
|
|
> Mehr Informationen: <https://git-scm.com/docs/git-add>.
|
|
|
|
- Füge eine bestimmte Datei zum Index/Stage hinzu:
|
|
|
|
`git add {{pfad/zu/datei}}`
|
|
|
|
- Füge alle Dateien zum Index/Stage hinzu (nachverfolgte und nicht nachverfolgte):
|
|
|
|
`git add -A`
|
|
|
|
- Füge nur nachverfolgte Dateien zum Index/Stage hinzu (Updaten des Index/Stage):
|
|
|
|
`git add -u`
|
|
|
|
- Füge auch Dateien, welche ignoriert werden (`.gitignore`) hinzu:
|
|
|
|
`git add -f`
|
|
|
|
- Füge Teile von Dateien zum Index/Stage interaktiv hinzu:
|
|
|
|
`git add -p`
|
|
|
|
- Füge Teile einer bestimmten Datei interaktiv hinzu:
|
|
|
|
`git add -p {{pfad/zu/datei}}`
|
|
|
|
- Füge Dateien zum Index/Stage interaktiv hinzu:
|
|
|
|
`git add -i`
|