Fix 'git remote origin already exists' with Wrong URL - Fix Git Detached HEAD by Creating a New Branch-Resolve Git Push Rejected Error

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