How to Fix Git Detached HEAD Error - Fix 'Windows Cannot Access Shared Folder' via Registry-Fix Externally-Managed-Environment Error: Use Virtual Environment

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