To do a permanent discard: git reset --hard
git reset --hard
To save changes for later: git stash
git stash