git remove commit from local

Shell
git reset --hard HEAD~1
Source

Also in Shell: