How to Fix a Detached HEAD with Git Reset --hard - Docker Container Exits Immediately with Exit Code 137-Resolving Git SSL Certificate Issues on HTTPS Repos

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