Fix 'pnpm global install permission denied' on Linux - Mac Git: Dealing with Existing Remote Origin-Update git Remote Origin with Correct URL

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