How to Fix Git Detached HEAD and Checkout a Branch - Windows 11 Update Stuck at 0%: Practical Checklist-Git Rebase Error: index.lock File Exists – Solution

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