Fix Git 'index.lock' File Exists Error in SourceTree - Bypass pip Externally Managed Environment on Linux-Fixing a Detached HEAD State in Visual Studio Code

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