git discard unstaged files

Shell
git stash save --keep-index --include-untrackedgit clean -df
git checkout -- .
# 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: