Fix Docker Pull Access Denied Due to Token Expiration - Fix Detached HEAD in Git and Switch Branches-Git Clone Timeout Error 128: Causes and Fixes

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