code: def undo(scm, verbose, fake, hard):
      
      scm.fake = fake
      scm.verbose = fake or verbose
  
      scm.repo_check()
  
      status_log(scm.undo, 'Last commit removed from history.', hard)
docs: Removes the last commit from history.