Remove commit. Git. git commit. git revert. git reset soft head~1.