How to Fix Git Unrelated Histories Error When Merging Branches - How to Handle Git Merge Conflicts: A Checklist-Fix 'Permission Denied' When Running pip install --user

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