Fix Git Authentication Failed in VS Code on Linux - Docker Container Exits Immediately on Mac: Fixes-Recover Lost Commits After Git Detached HEAD

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