git delete changes

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

# Discard all local changes to all files permanently:
git reset --hardgit reset --hard
git checkout -- .
git stash save --keep-index --include-untrackedgit clean -df
git checkout -- .

Source

Also in C++: