Fix 'git remote add origin already exists' Error - Diagnose and Fix Nginx Redirect Loops-Resolve Git Lock File After System Crash

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