Fix 'git remote origin already exists' with Wrong URL - How to Stop Explorer Crashing in Safe Mode-Resolving 'index.lock file exists' in Git on macOS

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