Fix 'Permission Denied' in VS Code Terminal - Git Unrelated Histories Merge Error Fix-Git Detached HEAD Commit Recovery 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.