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