Fix Git Detached HEAD State in Visual Studio Code - How to Fix VS Code Source Control on Ubuntu-Fix Git Clone Connection Timed Out via HTTPS

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