Git: Revert a file to a previous version
Using commit hash
git log "some-folder/some-file.txt" #get the SHA commit hash
git checkout <commit-hash> "some-folder/some-file.txt"
Using the HEAD
git checkout HEAD~1 "some-folder/some-file.txt"
Using commit hash
git log "some-folder/some-file.txt" #get the SHA commit hash
git checkout <commit-hash> "some-folder/some-file.txt"
Using the HEAD
git checkout HEAD~1 "some-folder/some-file.txt"