Fix 'fatal: refusing to merge unrelated histories' in Bitbucket - Resolve VS Code Update Permission Errors-How to bypass pip externally-managed-environment on Ubuntu 23.04

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