79471936

Date: 2025-02-27 08:02:01
Score: 0.5
Natty:
Report link
import git

repo = git.Repo("/my/repo/folder")

# OPTIONAL: discard any current changes
repo.git.reset('--hard')

# discard untracked changes
repo.git.clean("-xdf")
Reasons:
  • Low length (1):
  • Has code block (-0.5):
Posted by: Dorin