Fix 'git pull failed index.lock file exists' Error - How to Resolve Git Detached HEAD-Fix Windows Defender Real-Time Protection Not Running

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