Fix git index.lock File Exists Error on Windows - Resolve Git Detached HEAD in SourceTree-How to Fix Permission Denied Error in VS Code Terminal macOS

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