Cofnij zatwierdzenie i całkowicie usuń wszystkie zmiany

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