This are some git useful commands for revering change
git reset --hard
This command will discard any change that were made from the last commit (including staged file) but will not touch in untracked files
git clean -f
remove all untracked files.
git checkout <commit-hash> <file-name>
restore the file to what it has been when the commit-hash commit created.