Recover Lost Commits After Git Detached HEAD - Troubleshooting 502 Errors with Nginx and Docker Compose-Git Detached HEAD Warning: What It Means and How to Fix It

Final checklist
- Confirm that the same symptom is gone after a restart or refresh.
- Keep the smallest working change and undo temporary diagnostic settings.