How to Manually Remove a Stuck Git index.lock File - Recover from Git Detached HEAD with Reset Hard-package-lock.json Conflict Guide

Final checklist
- Confirm that the same symptom is gone after a restart or refresh.
- Keep the smallest working change and undo temporary diagnostic settings.