Fix Git 'index.lock file exists' Error - Resolve Nginx 'invalid location directive' Error-How to Handle Git Merge Conflicts When Pulling

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