Git revert local changes-How do I revert all local changes in Git managed project to previous state?
To revert changes done to your working directory
git checkout .
To revert changes made to the index
git reset --hard
Warning: This will reset all unpushed commits to master.
To revert a change that you have committed
git revert
To remove untracked files
git clean -f
To remove untracked directories
git clean -fd