How can I reset or revert a file to a specific revision?
Assuming the hash of the commit you want is c5f567: 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): As a side note, I’ve always been uncomfortable with this command because it’s used for … Read more