Windows Command For Undo ((exclusive)) -

git add . && git commit -m "checkpoint" # After mistakes: git reset --hard HEAD

# Log changes before risky operations $undoLog = @() windows command for undo