Fix VS Code Source Control Not Detecting Changes in Subfolder - Recover Detached HEAD Commits and Merge to Master-How to Resolve Nginx 502 Bad Gateway on Docker

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