Prevent Git Index Lock File Creation: Practical Fixes - Git Push Rejected Non Fast Forward: Causes and Solutions-Git Detached HEAD Rebase Recovery Guide

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