Fix 'Externally Managed Environment' Error on Linux - Resolve 'Remote Origin Already Exists' in Git-Fix Detached HEAD Push Error in Git

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