Fix VSCode Git Authentication Failed on Windows - Fix Git index.lock File Exists Permission Denied Error-Git Detached HEAD: How to Undo and Recover

Likely symptom
Likely cause
Safe rollback
Verification route
- Repeat the original action, not only a simplified test case.
- Restart the app or reload the service after configuration changes.