Fix Git 'index.lock' Error in VS Code - Error 0x80070080 Windows Update Stuck – Quick Fix Guide-Resolving 'Refusing to Merge Unrelated Histories' in Git

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