1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-28 23:24:55 +02:00
tldr/pages.fr/common/git-add.md
2020-08-10 00:17:27 +01:00

24 lines
454 B
Markdown

# git add
> Ajoute les fichiers modifiés à l'index.
> Plus d'informations : <https://git-scm.com/docs/git-add>.
- Ajouter un fichier à l'index :
`git add {{path/to/file}}`
- Ajouter tous les fichiers (suivis et non-suivis) :
`git add -A`
- Ajoute les modifications des fichiers déjà suivis :
`git add -u`
- Ajoute aussi les fichiers ignorés :
`git add -f`
- Ajoute des parties de fichiers interactivement :
`git add -p {{path/to/file}}`