A destructive and non-destructive way to roll back a commit would be using:
#DESTRUCTUVE HEAD~1 refering to the commit before the current one
git reset --hard HEAD~1
#NON-DESTRUCTIVE new commit that undoes the changes of the most recent commit
git revert HEAD