Fix Git Authentication Failed in VS Code on Mac - Resolving pip Permission Errors: Practical Steps-Fix Git Detached HEAD State

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