Fix Git 'index.lock file exists' Error - Recover from Git Detached HEAD State-C++ Breakpoint Issues in VS Code: Troubleshooting Guide

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