git restablecer archivo específico
git checkout c5f567 -- file1/to/restore file2/to/restore
git restablecer un archivo
git checkout HEAD -- my-file.txt
¿Cómo puedo restablecer o revertir un archivo a una revisión específica?
git reset <commit hash> <filename>
git revertir un archivo
git checkout HEAD -- /directory/my-file.txt
revertir cambios no escalonados git
git checkout -- .
git revert commit para un solo archivo
git checkout <commit_hash> path/to/file