Git Push Rejected Non Fast Forward: Troubleshooting Checklist - How to Recover from Detached HEAD in Git-Fix Connection Reset Error on Certain Websites

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