How to Fix a Detached HEAD with Git Reset --hard - pip Externally Managed: How to Bypass Safely-Fix Git 'index.lock' File Exists Error in IntelliJ

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