Permanently Allow Unrelated Histories in Git Merge - Resolve npm Global Permission Denied on macOS/Linux-Understanding Git's Detached HEAD State

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