How to Fix Git Detached HEAD and Checkout a Branch - Fixing Git Authentication Failed in VS Code-Fixing Node Sass Build Failures in package.json

Final checklist
- Confirm that the same symptom is gone after a restart or refresh.
- Keep the smallest working change and undo temporary diagnostic settings.