Fixing 'git rebase index.lock file exists' Error - Fix Git Detached HEAD by Creating a New Branch-Fix Missing Integrated Terminal in Visual Studio Code

Final checklist
- Confirm that the same symptom is gone after a restart or refresh.
- Keep the smallest working change and undo temporary diagnostic settings.