git checkout id -- filename
revert a file to a Commit ID
git checkout id -- dirPath
revert whole dir to a Commit ID.