git previous files before commit code example
Example 1: How can I reset or revert a file to a specific revision?
git reset <commit hash> <filename>
Example 2: git show diff in modified file
git diff [filename]
git reset <commit hash> <filename>
git diff [filename]