Fix Nginx Config Test 'Permission Denied' Error - Resolve Git Remote Origin Already Exists-Stop Git Index Lock File Errors

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