Fix VSCode Git Authentication Failed on Windows - Recover from Git Detached HEAD with Reset Hard-Fix Git Lock File Not Deleted After Crash

Result check
- Keep one change per test run so you know which step helped.
- Undo temporary changes after the issue is confirmed.