Recover Lost Changes After Git Detached HEAD - Fix Git Push Rejected Non-Fast-Forward After Pull-Update git Remote Origin with Correct URL

Result check
- Keep one change per test run so you know which step helped.
- Undo temporary changes after the issue is confirmed.