git revert commited files code example
Example 1: reset certain file git
git checkout c5f567 -- file1/to/restore file2/to/restore
Example 2: git revert to repo version
git fetch origin
git reset --hard origin/master
git checkout c5f567 -- file1/to/restore file2/to/restore
git fetch origin
git reset --hard origin/master