Fix VS Code Git Authentication Failed for GitLab - Detached HEAD in Git: Step-by-Step Recovery-Resolve npm Install Permission Errors Caused by Yarn

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.