tldr/pages.it/common/git-add.md

25 lines
455 B
Markdown

# git add
> Aggiungi file nuovi o modificati all'area di stage.
> Maggiori informazioni: <https://git-scm.com/docs/git-add>.
- Aggiungi un file all'area di stage:
`git add {{percorso/del/file}}`
- Aggiungi tutti i file (tracciati e non tracciati):
`git add -A`
- Aggiungi solo i file già tracciati:
`git add -u`
- Aggiungi anche i file ignorati:
`git add -f`
- Aggiungi parti di un file in modo interattivo:
`git add -p {{percorso/del/file}}`