revert a file to a specific commit using git

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

‎AWS Cloud Practitioner PRO
‎AWS Cloud Practitioner PRO
  • ‎AWS Cloud Practitioner PRO Screenshot
  • ‎AWS Cloud Practitioner PRO Screenshot
  • ‎AWS Cloud Practitioner PRO Screenshot
  • ‎AWS Cloud Practitioner PRO Screenshot
  • ‎AWS Cloud Practitioner PRO Screenshot
  • ‎AWS Cloud Practitioner PRO Screenshot
  • ‎AWS Cloud Practitioner PRO Screenshot
  • ‎AWS Cloud Practitioner PRO Screenshot
  • ‎AWS Cloud Practitioner PRO Screenshot
  • ‎AWS Cloud Practitioner PRO Screenshot
  • ‎AWS Cloud Practitioner PRO Screenshot
  • ‎AWS Cloud Practitioner PRO Screenshot
  • ‎AWS Cloud Practitioner PRO Screenshot
  • ‎AWS Cloud Practitioner PRO Screenshot
  • ‎AWS Cloud Practitioner PRO Screenshot
  • ‎AWS Cloud Practitioner PRO Screenshot
  • ‎AWS Cloud Practitioner PRO Screenshot