Fix Git index.lock File Exists Permission Denied Error - Fix 'Git Remote Origin Already Exists' When Updating Remote URL-Resolve Nginx Syntax Check Failure in Ubuntu

Final checklist
- Confirm that the same symptom is gone after a restart or refresh.
- Keep the smallest working change and undo temporary diagnostic settings.