Fixing Nginx 502 Bad Gateway in Docker: Practical Steps - Pushing Git Detached HEAD to Remote-Fix Git Clone Timeout on macOS: Step-by-Step Guide

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