Fix Git Push Non-Fast-Forward and Permission Denied Errors - Git Detached HEAD Explained with Recovery Steps-VS Code Git Permission Denied Fix

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