how to revert a file in git code example
Example 1: git reset change in one file
# undo local changes to specific file
git checkout -- file
Example 2: undo unstaged changes git
git checkout -- .
Example 3: reset certain file git
git checkout c5f567 -- file1/to/restore file2/to/restore