How to Fix a Detached HEAD with Git Reset --hard - Update Git Remote URL with set-url origin-VSCode Git SSH Key Error Troubleshooting

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