Fix Git Detached HEAD State in Visual Studio Code - How to Fix Nginx 502 Bad Gateway in Docker-Git Clone Connection Timed Out? Firewall Fixes

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