Fix Git 'index.lock' File Exists Error in SourceTree - Docker Nginx 502 Upstream Error Fix-How to Resolve 'git remote origin already exists' on GitLab

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