Git Detached HEAD Warning Explained: Causes and Fixes - Fix Git Non-Fast-Forward Rejection-Fix VS Code Source Control Not Detecting Changes with Permission Denied

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