Fix Git Push Rejected: Non-Fast-Forward Error - How to Resolve Git Non-Fast-Forward Push Rejection-Fixing Detached HEAD in Git Without Losing Commits

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