Git: Revert to Old Version

By Xah Lee. Date: . Last updated: .
git checkout id -- filename

revert a file to a Commit ID

git checkout id -- dirPath

revert whole dir to a Commit ID.

git FAQ