revert a file to a specific commit using git

You can translate the content of this page by selecting a language in the select box.

How to git revert a file to a specific commit using git

Assuming your commit id is 8a02c028
git checkout 8a02c028 -- file1/to/restore file2/to/restore

error: Content is protected !!