git restore

Restaura los archivos del árbol de trabajo. Requiere la version 2.23+ de Git. Vea también git checkout y git reset. Más información: https://git-scm.com/docs/git-restore.

git restore {{ruta/al/archivo}}

git restore --source {{confirmación}} {{ruta/al/archivo}}

git restore :/

git restore --staged {{ruta/al/archivo}}

git restore --staged :/

git restore --worktree --staged :/

git restore --patch