Git Detached HEAD vs Attached HEAD: What It Means and How to Fix - Resolve Git Non Fast-Forward Push Rejection-Node.js Heap Out of Memory: Increase Memory for npm

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