Fix VSCode Git Authentication Failed: Reset Credentials - Fixing a Detached HEAD State in Visual Studio Code-Resolve Permission Denied During Git Merge

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