Discarding local changes

git checkout -- file
To throw everything away since last commit:
git reset --hard
To delete untracked files and directories:
git clean -f -d