How do I reset or revert a file to a specific revision?
Assuming the hash of the commit you want is c5f567: git checkout c5f567 — file1/to/restore file2/to/restore The git checkout man page gives more information. If you want to revert to the commit before c5f567, append ~1 (where 1 is the number of commits you want to go back, it can be anything): git checkout c5f567~1 … Read more