Recover Lost Commits After Git Detached HEAD - Resolve VS Code Permission Issues in Windows 11-GitLab PAT Setup for VS Code Git

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