Git index.lock File Exists Even After Deleting: Fixes - How to Fix Git Detached HEAD in IntelliJ IDEA-Git Stash Fails: index.lock Exists – Fix

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