# Discarding local changes (permanently) to a file: git checkout -- # Discard all local changes to all files permanently: git reset --hard
git clean -fdx
git reset --hard
git clean -fdxn