Fix Git Detached HEAD State in Visual Studio Code - Nginx 502 Upstream Connection Refused Guide-How to Change Git Remote Origin

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