1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 14:42:07 +02:00
tldr/pages.it/common/git-restore.md
Guido Lena Cota 83ddae952d
git*: add Italian translation (#4734)
* git-prune: add it translation

* git-reflog: add it translation

* git-remote: add it translation

* git-repack: add it translation

* git-restore: add it translation

* git-rev-parse: add it translation

* git-rev-list: add it translation

* git-rm: add it translation

* git-rebase: add it translation

* git-revert: add it translation

* git-reset: add it translation

* git-replace: add it translation

* git-reset: separate file tokens

* Use correct suffix for multiple tokens

Co-authored-by: Axel Navarro <navarroaxel@gmail.com>

* Integrate updates in #4533

Co-authored-by: Axel Navarro <navarroaxel@gmail.com>
2020-11-02 13:42:32 +01:00

523 B

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 .