Fixing 'git rebase index.lock file exists' Error - How to Fix Git Permission Denied in VSCode-Restore Windows Defender Real-Time Protection After Malware Disables It

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