Git: Revert to Old Version

By Xah Lee. Date: . Last updated: .

Revert a file to a commit id

git checkout commitID -- filename

the id is Commit ID

Revert whole dir to a commit id

git checkout commitID -- dirname

git FAQ

Git manage