from pathlib import Path
import subprocess
root=Path(__file__).resolve().parent/'before'
subprocess.run(['git','init'],cwd=root,check=True)
subprocess.run(['git','add','.'],cwd=root,check=True)
subprocess.run(['git','-c','user.name=Tutorial','-c','user.email=tutorial@example.invalid','commit','-m','original practice baseline'],cwd=root,check=True)
