Fix Git Detached HEAD State in Visual Studio Code - Git Merge Refusal: Unrelated Histories Fix-Resolve Git Authentication Failed in VS Code macOS

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