diff --git a/pages.de/common/git-add.md b/pages.de/common/git-add.md new file mode 100644 index 000000000..237d073a9 --- /dev/null +++ b/pages.de/common/git-add.md @@ -0,0 +1,32 @@ +# git add + +> Fügt Dateien zum Index/Stage hinzu. +> Mehr Informationen: . + +- Fügt eine Datei zum Index/Stage hinzu: + +`git add {{pfad/zur/datei}}` + +- Fügt alle Dateien zum Index/Stage hinzu (nachverfolgte und nicht nachverfolgte): + +`git add -A` + +- Fügt nur nachverfolgte Dateien zum Index/Stage hinzu (Updaten des Index/Stage): + +`git add -u` + +- Fügt auch Dateien, welche ignoriert werden (.gitignore) hinzu: + +`git add -f` + +- Interaktives Hinzufügen von Dateien zum Index/Stage: + +`git add -p` + +- Interaktives Hinzufügen von Teilen der Datei, welche angegeben wird: + +`git add -p {{pfad/zur/datei}}` + +- Interaktives Hinzufügen von Dateien zum Index/Stage: + +`git add -i`