Fix Git Detached HEAD State in Visual Studio Code - Troubleshooting Git Rejected Non Fast Forward-Avoid MemoryError in Python: Handling Large Files Efficiently

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