Understanding and Fixing Git Detached HEAD State - Git Unrelated Histories Error Workaround-Docker Compose Secret vs Environment Variable: When to Use Each

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