Fix 'fatal: refusing to merge unrelated histories' in Bitbucket - Using pipx When pip Says Externally Managed Environment-Fix Windows Update Error 0x80070002: Missing File

Final checklist
- Confirm that the same symptom is gone after a restart or refresh.
- Keep the smallest working change and undo temporary diagnostic settings.