Delete the most recent commit, without destroying the work you've done: git reset --soft HEAD~1 Delete the most recent commit and remove changes: git reset --hard HEAD~1