Membatalkan komit dan menghapus semua perubahan sepenuhnya

git reset --hard HEAD~;
# Warning: hard resets the index and working tree. 
# Any changes to tracked files in the working tree since the previous commit are discarded
Active Programmer