How to Fix Git Push Rejected Non-Fast-Forward - Git Detached HEAD: Merge Changes to Master-Cloudflare 521 Error: Proxy Misconfiguration Fix

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