Git Detached HEAD vs Attached HEAD: What It Means and How to Fix - Git Clone SSH Timeout Troubleshooting-Detached HEAD in Git: Step-by-Step Recovery

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