Fix 'fatal: refusing to merge unrelated histories' in Git - Nginx PHP-FPM Connection Refused: How to Fix-Resolving Same-Line Git Merge Conflicts

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