Fix VS Code Source Control Not Detecting Changes in Subfolder - Fix Windows Update Error 0x80070002-Pushing Git Detached HEAD to Remote

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