How to Recover from Detached HEAD in Git - Windows Update Error 0x80070002: Disk Space Fix Guide-How to Remove Stuck Git Lock Files After Crash

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