Fix Git 'index.lock' File Exists Error on Linux - How to Stop Docker Build Context Canceled Errors-Resolve Git Detached HEAD in SourceTree

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