Fix Permission Denied on chmod in VS Code Terminal - Fix VS Code Source Control Not Detecting Changes After Branch Switch-Git index.lock Error on Mac: Fix and Prevention

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