code: def ensure_clean_git(operation='operation'):
      
      if os.system('git diff-index --quiet HEAD --'):
          print("Unstaged or uncommitted changes detected. {} aborted.".format(
              operation.capitalize()))
          sys.exit()
docs: Verify that git has no uncommitted changes