Fix 'git remote origin already exists' Error on Mac - Fixing Nginx Upstream Connection Refused on Port 443-Stop Nginx Redirect Loop with These Checks

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