revert file to specific hash code example Example: git revert one file git checkout HEAD -- /directory/my-file.txt