How to Fix Git Detached HEAD State and Undo Changes - Resolve Docker Pull Access Denied Despite Successful Login-Avoid Memory Errors Reading Large Files in Python

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