Fix VS Code Git Authentication Failed: Step-by-Step Guide - Git Detached HEAD Commit Recovery Guide-Troubleshooting Git index.lock File Exists on Windows

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