Fix 'Permission Denied' for Yarn in VS Code Terminal - Recover Lost Commits After Git Detached HEAD-VS Code Git Auth Failed with 2FA: How to Fix

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