git reset fichier spécifique
git checkout c5f567 -- file1/to/restore file2/to/restore
git réinitialise un fichier
git checkout HEAD -- my-file.txt
Comment puis-je réinitialiser ou rétablir un fichier à une révision spécifique?
git reset <commit hash> <filename>
git retourne un fichier
git checkout HEAD -- /directory/my-file.txt
annuler les modifications non échelonnées git
git checkout -- .
git revert commit pour un seul fichier
git checkout <commit_hash> path/to/file