Restablecer el cambio de restablecimiento de git en un archivo
# undo local changes to specific file
git checkout -- file
Old-fashioned Ox
# undo local changes to specific file
git checkout -- file
git checkout HEAD -- my-file.txt