git ripristina file specifico
git checkout c5f567 -- file1/to/restore file2/to/restore
git ripristina un file
git checkout HEAD -- my-file.txt
Come posso ripristinare o ripristinare un file su una revisione specifica?
git reset <commit hash> <filename>
git ripristina un file
git checkout HEAD -- /directory/my-file.txt
ripristina le modifiche non salvate git
git checkout -- .
git ripristina commit per singolo file
git checkout <commit_hash> path/to/file