git-*: sync Spanish translation (#5893)

* git-config: sync Spanish translation

* git-lfs: sync Spanish translation

* git-log: sync Spanish translation

* git-remote: sync Spanish translation

* git-restore: sync Spanish translation

* git-show: sync Spanish translation

* git-status: sync Spanish translation

* git-switch: sync Spanish translation
This commit is contained in:
Ignacio Mattos
2021-05-04 14:18:41 -03:00
committed by GitHub
parent 27f99ebd23
commit 8939f2e0eb
8 changed files with 83 additions and 27 deletions

View File

@@ -1,17 +1,33 @@
# git restore
> Restura archivo del arbol de trabajo. Requiere la version 2.23 o superior de Git.
> Véase también `git checkout`.
> Restaura los archivos del árbol de trabajo. Requiere la version 2.23+ de Git.
> Véase también `git checkout` y `git reset`.
> Más información: <https://git-scm.com/docs/git-restore>.
- Restaura un archivo eliminado del contenido del commit actual (HEAD):
- Restaura un archivo sin marcar a la versión del commit actual (HEAD):
`git restore {{ruta/al/archivo}}`
- Restaura un archivo a la versión de un commit diferente:
- Restaura un archivo sin marcar a la versión de un commit específico:
`git restore --source {{commit}} {{ruta/al/archivo}}`
- Deshace cambios sin commit para los archivos rastreados, revirtiendo al HEAD actual:
- Descarta los cambios sin commit para los archivos rastreados:
`git restore .`
`git restore :/`
- Desmarca un archivo:
`git restore --staged {{ruta/al/archivo}}`
- Desmarca todos los archivos:
`git restore --staged :/`
- Descarta todos los cambios de los archivos, marcados o no:
`git restore --worktree --staged :/`
- Selecciona interactivamente secciones de archivos para restaurar:
`git restore --patch`