1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-23 06:02:08 +02:00
tldr/pages.it/common/git-restore.md
bl-ue 0263149af3 git-restore: fix more information link
The old one led to an HTTP 500 because of the trailing /.
2021-01-08 13:52:28 -03:00

17 lines
522 B
Markdown

# git restore
> Ripristina i file dell'albero di lavoro. Richiede versioni di Git successive alla 2.23.
> Vedi anche `git checkout`.
> Maggiori informazioni: <https://git-scm.com/docs/git-restore>.
- Ripristina un file cancellato dal contenuto del commit corrente (HEAD):
`git restore {{percorso/al/file}}`
- Ripristina un file alla versione di un commit differente:
`git restore --source {{commit}} {{percorso/al/file}}`
- Annulla le modifiche ai file nell'area di stage, ripristinandoli all'HEAD:
`git restore .`