Fixing Python UnicodeDecodeError with latin-1 Codec - Git index.lock: Causes and Prevention-Viewing the Diff in a Git Merge Conflict

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