mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-23 06:02:08 +02:00

- Replace "al" -> "del", "alla" -> "della", etc. in command paths - Replace all instances of "cartella" with "directory" - Update contributing-guides/translation-templates/common-arguments.md to reflect these changes Co-authored-by: marchersimon <50295997+marchersimon@users.noreply.github.com> Co-authored-by: Marco Bonelli <marco@mebeim.net> Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
17 lines
524 B
Markdown
17 lines
524 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/del/file}}`
|
|
|
|
- Ripristina un file alla versione di un commit differente:
|
|
|
|
`git restore --source {{commit}} {{percorso/del/file}}`
|
|
|
|
- Annulla le modifiche ai file nell'area di stage, ripristinandoli all'HEAD:
|
|
|
|
`git restore .`
|