How to Fix Windows Update Error 0x80070005 Permission Denied - Git index.lock File Exists: Quick Fix Checklist-Fix Git 'fatal: refusing to merge unrelated histories' on GitHub

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