How to Fix Git index.lock File Exists Error on Mac - Recovering Uncommitted Work After Detached HEAD in Git-How to Bypass pip Externally Managed Error on Debian 12

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