git reverse specific file code example Example: How can I reset or revert a file to a specific revision? git reset <commit hash> <filename>