git reset head all files code example
Example 1: revert unstaged changes git
git checkout -- path/to/file/to/revert
Example 2: git remove my local changes and pull from master
git reset --hard <your commit hash key>
git checkout -- path/to/file/to/revert
git reset --hard <your commit hash key>