Fix Docker Compose Port Allocation Errors - How to Fix a Detached HEAD with Git Reset --hard-Setup Git Mergetool for Conflict Resolution

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