Git revertir un archivo

Ejemplos de código

3
0

git restablecer archivo específico

git checkout c5f567 -- file1/to/restore file2/to/restore
3
0

git restablecer un archivo

git checkout HEAD -- my-file.txt
3
0

¿Cómo puedo restablecer o revertir un archivo a una revisión específica?

git reset <commit hash> <filename>
2
0

git revertir un archivo

git checkout HEAD -- /directory/my-file.txt
0
0

revertir cambios no escalonados git

git checkout -- .
0
0

git revert commit para un solo archivo

git checkout <commit_hash> path/to/file

En otros idiomas

Esta página está en otros idiomas

Русский
..................................................................................................................
English
..................................................................................................................
Italiano
..................................................................................................................
Polski
..................................................................................................................
Română
..................................................................................................................
한국어
..................................................................................................................
हिन्दी
..................................................................................................................
Français
..................................................................................................................
Türk
..................................................................................................................
Česk
..................................................................................................................
Português
..................................................................................................................
ไทย
..................................................................................................................
中文
..................................................................................................................
Slovenský
..................................................................................................................
Балгарскі
..................................................................................................................
Íslensk
..................................................................................................................