Fix Git 'index.lock' File Exists Error in IntelliJ - Troubleshoot VS Code Terminal and Conda-Git Merge Unrelated Histories: Step-by-Step Guide

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