Fix 'fatal: refusing to merge unrelated histories' in Git - Fix 'Externally Managed Environment' Error in pip-Poetry Lock File Conflict Resolution Guide

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