Fix git index.lock File Exists Error on Windows - Solving 'Fatal: Remote Origin Already Exists' in Git-Fix 'pnpm global install permission denied' on Linux

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