git discard local changes

Shell
# Discarding local changes (permanently) to a file:
git checkout -- <file>

# Discard all local changes to all files permanently:
git reset --hardgit checkout -- .

Source

Also in Shell: