Git Detached HEAD: Practical Checklist and Fixes - Fix 'fatal: refusing to merge unrelated histories' in Git-Missing Taskbar Icons in Windows 11? Try These Fixes

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