Fix VS Code Source Control Not Detecting Changes After Branch Switch - How to Push a Git Detached HEAD to Remote-How to Stop Nginx HTTPS Redirect Loop

Result check
- Keep one change per test run so you know which step helped.
- Undo temporary changes after the issue is confirmed.