Fixing 'git rebase index.lock file exists' Error - How to Fix Git index.lock File Exists Error on Mac-How to Recover from Detached HEAD in Git

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