how discharge changes e recover last commit git

Shell
git clean -fd
git reset HEAD --hard

Source

Also in Shell: