Git Detached HEAD: Practical Checklist and Fixes - Git Detached HEAD: How to Save Your Work with a Branch-How to Fix Nginx 502 Bad Gateway in Docker Compose

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