git resetovat konkrétní soubor
git checkout c5f567 -- file1/to/restore file2/to/restore
git resetovat jeden soubor
git checkout HEAD -- my-file.txt
Jak mohu obnovit nebo vrátit soubor ke konkrétní revizi?
git reset <commit hash> <filename>
git vrátit jeden soubor
git checkout HEAD -- /directory/my-file.txt
vrátit nezměněné změny git
git checkout -- .
git revert commit pro jeden soubor
git checkout <commit_hash> path/to/file